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

feat: Support reflecting models on download. #65

Merged
merged 3 commits into from
Sep 5, 2024

Conversation

bvanelli
Copy link
Owner

@bvanelli bvanelli commented Sep 4, 2024

  • Adds reflection when loading the database from Actual. This means that unknown columns will not be supported even when they are not present on the model. This should ensure that migrations will not break as often.
  • Possibly dangerous migrations and the method create_budget now raise warnings due to the impossibility of running custom Javascript code on the Python wrapper.
  • Support for Actual Server 24.9.0
  • Reworked the parsing of the JS migrations to account for changes done in Actual 24.9.0

Thanks to @HamedHemati for the contributions on #hackergarten

Closes #66

Closes #58

Copy link

codecov bot commented Sep 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.05%. Comparing base (846b09d) to head (49f4b44).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #65      +/-   ##
==========================================
+ Coverage   96.95%   97.05%   +0.09%     
==========================================
  Files          13       14       +1     
  Lines        1842     1904      +62     
==========================================
+ Hits         1786     1848      +62     
  Misses         56       56              

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

@bvanelli bvanelli marked this pull request as ready for review September 5, 2024 19:08
@bvanelli bvanelli merged commit fb81211 into main Sep 5, 2024
7 checks passed
@bvanelli bvanelli deleted the 58-reflect-models-during-sync branch September 5, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant