h4. WHAT
Implement a seed to insert data into the database as we have for our customers in RHMAP and not the 3 or 6 lines as it is now.
E.g: Insert in the database a mock with N apps > N versions ( like has for TKE, Quintiles, Siemens, Dublin Airport ) > N devices ( like has for TKE, Quintiles, Siemens, Dublin Airport).
Steps SubSteps : a)Improve the seed_db.go file b)Check if it has been called/used to create a mock database for the integration tests as should be ( probably yes, it is more a check) c)Check and doc in the README how to use the seed_db.go in order to validate the app and UI
h4. WHY: - Be able to test and check the UI with something more real data in order to ensure that this layout actually will works as expected. Note that usually, we are not able to preview many scenarios and possible pitfalls without the significant and realist data, for example, if we have more than N versions will be required pagination and/or a limit the qt of rows returned by the backend. How the UI will show it or will do in this scenario? Could we change the layout and/or create a limit in the back end server to avoid it? - Avoid unnecessary re-work, we can get the main pitfuls and/or gaps which if we solve now may means less effort than come back and re-do the implementations which sometimes can be tough - Ensure that the REST server is working well. E.g we can note that something is not actually been doing properly and we could not check it before with few rows as it is now. - Allow the implemented integrate tests use a database more realistic to ensure the quality of the project and avoid the introductions of bugs PS: Todo ASAP in order to help the development of UI for example.
h4. Suggestion
See image attached.
IMPORTANT: It is not required all versions and apps have this quantity and should 1 entity only to ensure its purpose. I mean that if we following this suggestion we should have 100 apps, but not all should have 20 versions and a total of 5.000 devices instead of it just one must have these amounts. |
|