-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start Backend Test Dev #19
Comments
Hi @anitab-org/bridgeintech-maintainers. I've created models for the BridgeInTech DB which consists of 2 schemas, bit schema and public (aka ms schema). And here's the Swagger UI running on local server from running Here's the SQL statements for each tables: MS Schema (public):
bitschema
Note: the I will commit and push the codes to my remote forked repo. But as this is only for a test, I probably won't open a PR until we finalise it 😉 . The branch is called test-schema. Look forward to your feedback 😆 |
PS: tomorrow I'm gonna work on migration script using Alembic and perhaps if time permits, will populate the tables with mock data. @ramitsawhney27, can I populate the data directly on pgadmin4 by running sql statements so not by placing the query inside the code (inside the code will get populated every time we're running the app)? This is coz I'm afraid the later will cause issue coz the data already exist. Or, should I do it with test cases for db models? Coz this way the mock data will only get inserted while the test is running and will be removed at the end of each test. Can you please advise? |
Dummy data insertion via pgadmin4 is good. We don't need tests as discussed in the weekly meeting. |
Notes to self: The following changes need to be made to address
More to be added .... |
Update: Let me know if there's anything unclear on the setting up 😉 |
Update: I've done the tests with 3 different conditions:
The results are as follows:
as I don't have access to debugger console when connecting to heroku server, I took the below screenshot instead.
This test 3 raised sqlalchemy error which I think caused by the non-existence BIT schemas inside the current code base of develop branch on MS (mentorship-backend repo). So regardless that the postgresql it's targeting as database already have BIT schemas in place. @ramitsawhney27. Can you please advise how we should solve this issue? Thanks beforehand. |
You could discuss this with Isabel to see how this can be included in mentorship system. |
@isabelcosta, can you share your thoughts? |
Update: We can also use it to do migration on mentorship-backend if we've decided to go ahead with incorporating bitschema in mentorship-backend code base. |
This issue is no longer needed as the code change for it has been merged to PR#26 and mentor has reviewed and requested changes there so I (again) will close this |
Description
As a student,
I need create and populate data models classes,
so that I can move on to the next tasks specified in the First Coding Phase Week 1.
Mocks
N/A
Acceptance Criteria
Update [Required]
Definition of Done
Estimation
2 days
The text was updated successfully, but these errors were encountered: