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

[MDS-5707] Added history view to Tailings Storage Facilities #3075

Merged
merged 6 commits into from
Apr 29, 2024

Conversation

simensma-fresh
Copy link
Collaborator

Objective

MDS-5707

History View
Added a TSF History view to the basic info page in core/minespace.

image
image
image

SQLAlchemy Continuum
Introduced SQLAlchemy Continuum for "automatic" handling of version tracking. Basically, just add a __versioned__ = {} property to your model and it'll create a Version model behind the scene that gets automatically added to on insert, updates, and deletes.

Migrations
Added a utility command make generate_version_table_migration TABLE=<table_name> that you can use to automatically generate a database migration for the _version table you want to create, and a DB migration to backfill existing data.

Copy link

Quality Gate Passed Quality Gate passed for 'bcgov-sonarcloud_mds_minespace-web'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

Quality Gate Failed Quality Gate failed for 'bcgov-sonarcloud_mds_common'

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

Copy link

Quality Gate Failed Quality Gate failed for 'bcgov-sonarcloud_mds_core-api'

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

Copy link

Quality Gate Passed Quality Gate passed for 'bcgov-sonarcloud_mds_core-web'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Collaborator

@matbusby-fw matbusby-fw left a comment

Choose a reason for hiding this comment

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

Looks awesome! Left a couple of questions regarding usage of the diff table elements and continuum, but I love it!

@simensma-fresh simensma-fresh merged commit 3f51d52 into develop Apr 29, 2024
20 of 22 checks passed
@simensma-fresh simensma-fresh deleted the MDS-5707_TSF-history branch April 29, 2024 15:15
simensma-fresh added a commit that referenced this pull request Jun 12, 2024
* MDS-5708 Updated basic info page

* [MDS-5707] Added history view of TSF

* MDS-5707 Cleanup of tsf changes

* MDS-5707 Cleanup

* MDS-5707 Fixed broken tests

* Updated TSP for core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants