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

Adapt version backend to new features #2543

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

artonge
Copy link
Contributor

@artonge artonge commented Sep 6, 2023

Adapt the version backend to the new files versions feature.

New

  • Support naming a version
  • Support deleting a version
  • Adds DB table to store version infos
  • Fix version creation that was using the current time instead of the version mtime
  • Adapt LazyFolder to new FileInfo interface make Node::getParent lazy server#38150

Todo

  • Test version import from previous versions
  • Check tests

Fix nextcloud/server#39138
Needs nextcloud/server#40296

@artonge artonge added bug enhancement 3. to review Items that need to be reviewed php Items related to PHP updates and code issues feature: versions Items related to file versioning labels Sep 6, 2023
@artonge artonge added this to the Nextcloud 28 milestone Sep 6, 2023
@artonge artonge self-assigned this Sep 6, 2023
@artonge artonge force-pushed the artonge/feat/enable_new_versioning_features branch from a05ce9b to 45447a0 Compare September 6, 2023 14:33
@artonge artonge force-pushed the artonge/feat/enable_new_versioning_features branch 6 times, most recently from 3ca48c1 to 5b7c45c Compare September 7, 2023 12:18
@artonge
Copy link
Contributor Author

artonge commented Sep 7, 2023

/backport to stable27

lib/Versions/GroupVersion.php Show resolved Hide resolved
lib/Versions/GroupVersionEntity.php Outdated Show resolved Hide resolved
lib/Versions/VersionsBackend.php Show resolved Hide resolved
lib/Versions/VersionsBackend.php Show resolved Hide resolved
lib/Versions/VersionsBackend.php Outdated Show resolved Hide resolved
@artonge
Copy link
Contributor Author

artonge commented Sep 7, 2023

For the backport

  • Bump app version in info.xml to trigger the migration

Signed-off-by: Louis Chemineau <[email protected]>
@artonge artonge force-pushed the artonge/feat/enable_new_versioning_features branch from 5b7c45c to 951cea3 Compare September 7, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Items that need to be reviewed bug enhancement feature: versions Items related to file versioning php Items related to PHP updates and code issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make persistent versioning available for groupfolders
3 participants