-
Notifications
You must be signed in to change notification settings - Fork 28
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
Differentiate between minor and major updates #387
Comments
@PVince81 what if a major update is the only available for the new minor core version? |
@IljaN in case we need something on marketplace as well |
maybe there's a better library for semver instead of using |
@PVince81 - ask and you shall be given - https://packagist.org/packages/composer/semver |
@VicDeo I'd be tempted to say: then we don't update it. This would imply that for every major update of OC there will be a major update for apps as well. I think this makes sense due to compatibility purposes and branching purposes. |
What about market web UI - should it also show only minor updates as available? and another thing: I foresee the number of unsuccessful update reports from Web updater users to increase. |
TBH I don't see any benefit from semver package unless it would be adopted on the core level and wrapped with method |
Hmmm, it should show minor updates only by default. But an admin should have a mechanism to force a major update of an app if they want to (if said major update is compatible with current OC). |
@VicDeo any update ? estimate ? |
@PVince81 for web UI part estimates are unclear, all these Vue things look like a summoning the Dark Priest Cthulhu to me... |
here is a proposed solution:
|
you can grab @felixheidecke for all things Vue wizardry. |
@VicDeo the plan sounds good. Sounds like web updater will also need an option there, maybe a checkbox of some sorts. I suggest opening a ticket in the web updater repo for its plan and task. |
@PVince81 what do you think on this approach? It is missing CLI parameters and frontend part. |
looks good currently I still have an uncomfortable feeling as I don't have enough certainty about what could go wrong and how we can protect against this based on this approach we could actually release the market app. Wwe need to release it anyway before a core release as core release script fetches the market app from marketplace. Can you make the flag default to something so that if the matching core version isn't there yet, the updates still work as they did before the change ? Unless we decide to enforce min-version=10.0.10 in the new market app. |
@PVince81 |
semver package is coming anyway in owncloud/core#31103 |
Possible scenarios: Let A be an app with current version 1.0.1 and updatable to either version 1.2.3 (minor) or version 2.0.2 (major)
Ok, this was only to illustrate the scenarios and at this level I don't see anything that could go wrong. |
not that easy... it's better to refactor market app to deliver update candidates as
instead of the current there is too many magic behind the scene so it is better to do it properly |
@VicDeo market or marketplace ? I think the market app controller should prefilter, either return major candidates or minor, not both. There is no use for the frontend for both results, unless you want to implement the filter on the frontend side ? |
@PVince81 market. |
It all depends how this is to be implemented. Approach 1:
Approach 2:
In the end the user will see the same. I thought filtering on backend could be more efficient, especially once we start having a lot more app. Maybe eventually it's the marketplace itself (not market app) that will be able to filter. |
|
SummaryNotes on testing with core master branchOur marketplace has no apps for OC 11 platform yet otherwise you'll need an own marketplace that provides apps for OC 11 this part depends on owncloud/core#32491 merged into master.Core upgrade
this part is merged with #391CLI
Market app Web UI
Market app cron job
ScreenshotsUpdates tabApp PageExamplesupdate the app from v0.3.5 to v0.3.5
0.3.5 to 1.3.5 (no
0.3.5 to 1.3.5 (with
|
@davitol see above whether this is clear enough for testing |
moved to QA to test against v10.0.10 (last stable version) and stable10 (future version which comes with owncloud/core#32491) |
Did this change find it's way into the docs? Didn't find anything about |
occ upgrade --major
occ market update --major
The text was updated successfully, but these errors were encountered: