-
Notifications
You must be signed in to change notification settings - Fork 449
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
Doc: Add Run migration script instruction to Readme. #1090
Conversation
93ba2ac
to
38f3dfd
Compare
modify instructions to new and existing contributors
38f3dfd
to
cd43681
Compare
Codecov Report
@@ Coverage Diff @@
## bit #1090 +/- ##
=======================================
Coverage 94.50% 94.50%
=======================================
Files 39 39
Lines 2677 2677
=======================================
Hits 2530 2530
Misses 147 147 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mtreacy002 I have some questions here:- 👇
|
||
This will attach the alembic version number on the repo (if any) to the local db. | ||
|
||
* For existing contributors, run the following command: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here existing contributors means whose DB is filled with some entries or those who run flask db upgrade
in the past.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those whose db is filled with the previous version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@devkapilbansal and @epicadk , I might have to make it clearer here to distinct the 3 situations that might apply to contributors whose dealing with the migration (as I mentioned in this post). Please do share your opinion 😉 .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure @mtreacy002
It would be good to make the documentation as clear as possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, @devkapilbansal , should I add those 3 steps on this PR or on #1038 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that #1038 is required now. Since we are going to merge this branch in develop once completed
@@ -271,8 +290,7 @@ The repository has the following permanent branches: | |||
|
|||
* **develop** This contains the latest code. All the contributing PRs must be sent to this branch. When we want to release the next version of the app, this branch is merged into the `master` branch. This is the branch that is used in the deployed version of the app on Heroku. | |||
|
|||
* **bit** This branch is for MS-backend version specific to [BridgeInTech](https://github.com/anitab-org/bridge-in-tech-backend) project. All the contributing PRs related to BIT-MS integration issue must be sent to this branch.<br> | |||
**IMPORTANT!!** If this is your first time setting up the BridgeInTech project, please <b>DO NOT RUN</b> the MS backend server from this branch <b>BEFORE</b> you run the BIT backend server. Failing to do this will mess up the postgres db schemas used in BIT project. More instruction on setting up the BridgeInTech project can be found [here](https://github.com/anitab-org/bridge-in-tech-backend/blob/develop/.github/ENV_SETUP_INSTRUCTION.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this point is no more needed? Will not this disturb the Bridge in Tech project configuration?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope because we are integrating so it doesn't make sense to have it any more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, the current ms-backend-server from my repo is the one that contributors will continue using until full integration is completed in bit branch, but no need to have this explained in bit branch since they're not using this branch for BIT development atm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💪🏾
Description
Added instruction on how to run migration script to README.md when working on
bit
branch.Fixes #1089
Type of Change:
Code/Quality Assurance Only
How Has This Been Tested?
alembic_version
folder.flask db stamp head
to linked the latest alembic version on the repo to the local dbflask db upgrade
, contributors would have MS only schema withoutalembic_version
folder in their local_data.dbflask db upgrade
to add the latest alembic version on the bit branch to the existing local_data.db.Checklist:
Code/Quality Assurance Only