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

Remove the ability to tag storages #4675

Merged
merged 5 commits into from
Jan 22, 2024

Conversation

dantb
Copy link
Contributor

@dantb dantb commented Jan 18, 2024

@dantb dantb force-pushed the remove-storages-tagging branch 2 times, most recently from e8a5346 to 61eb2dd Compare January 18, 2024 16:13
@dantb dantb marked this pull request as ready for review January 18, 2024 16:45
@dantb dantb marked this pull request as draft January 19, 2024 11:49
@dantb dantb marked this pull request as ready for review January 19, 2024 11:50
@@ -368,10 +335,6 @@ object Storages {
s.copy(rev = e.rev, value = e.value, source = e.source, updatedAt = e.instant, updatedBy = e.subject)
}

def tagAdded(e: StorageTagAdded): Option[StorageState] = state.map { s =>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we still need to compute a new state and update the rev, we may break some history otherwise.
For example, this should still work:

  • StorageCreated
  • StorageTagged
  • StorageUpdated
    We should still have a storage with revision 3

@dantb dantb force-pushed the remove-storages-tagging branch from ba47407 to 42e79be Compare January 19, 2024 16:30
@dantb dantb merged commit fab16c1 into BlueBrain:master Jan 22, 2024
5 checks passed
@dantb dantb deleted the remove-storages-tagging branch January 22, 2024 14:35
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.

2 participants