-
Notifications
You must be signed in to change notification settings - Fork 16
FAIR dataset deletion #970
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
Open
glombiewski
wants to merge
20
commits into
geo-engine:main
Choose a base branch
from
glombiewski:fair-dataset-deletion
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
06f0983
Add FAIR dataset deletion and expiration;
glombiewski 371bbde
Merge branch 'main' into fair-dataset-deletion
glombiewski 40c1303
Move db timestamp query to pro utils;
glombiewski 7b4fa9c
Remove option to keep data during expiration; Move transaction method…
glombiewski c56db30
Fix missing expiration updates;
glombiewski 3fc317a
Fix expiration open-api generation and docs;
glombiewski c287c34
Add reserved tags;
glombiewski 2865e61
Reuse connections and wrap dataset status updates;
glombiewski 265eba0
Add display errors messages for expiration errors;
glombiewski 35eb211
Fix listing with empty tags;
glombiewski fd28d7b
Add dataset status request; Unify update methods and add view with up…
glombiewski b75e10d
Merge branch 'main' into fair-dataset-deletion
glombiewski 617cc8a
Fix SQL lint;
glombiewski 62756de
Wrap test expiration in transaction and increase duration to reduce c…
glombiewski 496ae60
Add check if dataset is a user upload;
glombiewski 7b3f778
Rename fair upload deletion migration;
glombiewski 8b9cb66
Merge branch 'main' into fair-dataset-deletion
glombiewski ad9c7c9
Fix formatting;
glombiewski 8bdab56
Fix sql parameters;
glombiewski f0fcf62
Fix formatting;
glombiewski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
services/src/contexts/migrations/migration_0010_delete_uploaded_datasets.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| use async_trait::async_trait; | ||
| use tokio_postgres::Transaction; | ||
|
|
||
| use crate::error::Result; | ||
|
|
||
| use super::database_migration::{DatabaseVersion, Migration}; | ||
|
|
||
| /// This migration adds new delete options for uploaded user datasets | ||
| pub struct Migration0010DeleteUploadedDatasets; | ||
|
|
||
| #[async_trait] | ||
| impl Migration for Migration0010DeleteUploadedDatasets { | ||
| fn prev_version(&self) -> Option<DatabaseVersion> { | ||
| Some("0009_oidc_tokens".into()) | ||
| } | ||
|
|
||
| fn version(&self) -> DatabaseVersion { | ||
| "0010_delete_uploaded_datasets".into() | ||
| } | ||
|
|
||
| async fn migrate(&self, _tx: &Transaction<'_>) -> Result<()> { | ||
| Ok(()) | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.