Skip to content
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

Fix missing migrations #6483

Merged
merged 11 commits into from
Mar 27, 2024
Merged

Fix missing migrations #6483

merged 11 commits into from
Mar 27, 2024

Conversation

greenape
Copy link
Member

Closes #6480

I have:

  • Formatted any Python files with black
  • Brought the branch up to date with master
  • Added any relevant Github labels
  • Added tests for any new additions
  • Added or updated any relevant documentation
  • Added an Architectural Decision Record (ADR), if appropriate
  • Added an MPLv2 License Header if appropriate
  • Updated the Changelog

Description

Fix for a second time the missing flowauth migrations. These are now included in the FlowAuth package, and I've added some logging so one can see them actually being run as well.

@greenape greenape added bug Something isn't working FlowAuth Issues related to FlowAuth labels Mar 27, 2024
@greenape greenape requested a review from Thingus March 27, 2024 10:25
Copy link

cypress bot commented Mar 27, 2024

Passing run #21961 ↗︎

0 4 0 0 Flakiness 0

Details:

Exclude migrations from coverage
Project: FlowAuth Commit: 9e3cac0329
Status: Passed Duration: 00:42 💡
Started: Mar 27, 2024 3:53 PM Ended: Mar 27, 2024 3:53 PM

Review all test suite changes for PR #6483 ↗︎

Copy link

codecov bot commented Mar 27, 2024

Codecov Report

Attention: Patch coverage is 62.85714% with 26 lines in your changes are missing coverage. Please review.

Project coverage is 77.20%. Comparing base (a0bf84a) to head (9e3cac0).

Files Patch % Lines
...kend/flowauth/migrations/versions/976c731ff30f_.py 64.28% 15 Missing ⚠️
...kend/flowauth/migrations/versions/73ea696e203d_.py 42.10% 11 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #6483       +/-   ##
===========================================
- Coverage   92.94%   77.20%   -15.75%     
===========================================
  Files         264      267        +3     
  Lines       10307    10417      +110     
  Branches      835      835               
===========================================
- Hits         9580     8042     -1538     
- Misses        599     2131     +1532     
- Partials      128      244      +116     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@Thingus Thingus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to exclude migrations from codecov tests?

db.create_all()
flask_migrate.stamp()

flask_migrate.upgrade()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a noop if force == True, but do we want in in an else clause just in case something goes wrong with a migration script and we need to rebuild?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reckon we want to boot this stuff out of the start up sequence and separate it all out from one another really, but not right now.

@greenape greenape added the ready-to-merge Label indicating a PR is OK to automerge label Mar 27, 2024
@mergify mergify bot merged commit b5b33a3 into master Mar 27, 2024
40 of 42 checks passed
@mergify mergify bot deleted the fix-missing-migrations branch March 27, 2024 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working FlowAuth Issues related to FlowAuth ready-to-merge Label indicating a PR is OK to automerge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FlowAuth migrations missing from docker image
2 participants