-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[full-ci] Implement persistent major version workflow (v2) #40531
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
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
0f10e42
Implement persisent major version workflow for versions
JammingBen 7ede572
adjust after rebase
mrow4a 6c0fcfc
rollback to preview current logic and add handling for displaying cur…
mrow4a fd8c511
add dav implementation for exposing current version
mrow4a 6d9370d
cleanup handling for current version
mrow4a afff63c
add handling for restored files
mrow4a e9a394c
add publish workflow
mrow4a f4f6e9e
add new config for versions metadata
mrow4a 0e5e827
rebase and linting
mrow4a 6352ade
phan fixes
mrow4a 73e4831
add expiry prevention for persistent versions
mrow4a 1062c29
fix tests
mrow4a 80e9cc7
version restore should do copy instead of move
mrow4a f158c27
revert logic to expose version restore tag
mrow4a 859cce2
add warning on disabling the feature
mrow4a f4460e6
minor version restore fixes
mrow4a 55dd496
make sure change is backwards compatible
mrow4a c1576d5
add changelog
mrow4a 7ee858a
fix javascript tests
mrow4a ee41917
adjust versioning unit tests
mrow4a b4a2bad
copy should preserve mtime
mrow4a d5e1e51
add tests for version tags
mrow4a 68c3bb1
add publish version tests
mrow4a 45e0c19
update changelog
mrow4a 4be3b9d
adjust for tests
mrow4a fea3774
adjust versioning acceptance tests
mrow4a 038435f
review fixes
mrow4a 768a5a8
adjust to new acceptance tests
mrow4a 495a1ef
avoid moving of checkboxes
mrow4a a36fb61
adjust for reviews
mrow4a 81e3c8b
minor fixes
mrow4a 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| <?php | ||
| /** | ||
| * @author Jannik Stehle <jstehle@owncloud.com> | ||
| * | ||
| * @copyright Copyright (c) 2022, ownCloud GmbH | ||
| * @license AGPL-3.0 | ||
| * | ||
| * This code is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU Affero General Public License, version 3, | ||
| * as published by the Free Software Foundation. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU Affero General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU Affero General Public License, version 3, | ||
| * along with this program. If not, see <http://www.gnu.org/licenses/> | ||
| * | ||
| */ | ||
|
|
||
| $application = new \OCA\Files_Versions\AppInfo\Application(); | ||
|
|
||
| $application->registerRoutes( | ||
| // @phan-suppress-next-line PhanUndeclaredThis | ||
| $this, | ||
| [ | ||
| 'routes' => [ | ||
| [ | ||
| 'name' => 'Version#publishVersion', | ||
| 'url' => '/publish-version', | ||
| 'verb' => 'POST' | ||
| ] | ||
| ] | ||
| ] | ||
| ); |
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.