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

App compatibility for old named routes #6439

Merged
merged 1 commit into from
Feb 15, 2022
Merged

Conversation

kulmann
Copy link
Member

@kulmann kulmann commented Feb 15, 2022

Description

Apps had to define their route components for named views in the past, either

components: {
  app: ComponentName
}

or

components: {
  fullscreen: ComponentName
}

We've removed the named routes in #6401 so that routes now need to be defined as

component: ComponentName

This broke "old" apps with an unrendered state, because the router-view with the respective name could not be found anymore.
This PR defines identical router-views for the default name and for the old app and fullscreen names, but all rendered in the same way (inside the app container, because we don't allow apps without topbar anymore).
Also added a deprecation warning. We can basically revert this commit once we release the next major version.

Motivation and Context

App compatibility

How Has This Been Tested?

Manually define an app with the old schema and make sure that it renders correctly.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Copy link
Contributor

@pascalwengerter pascalwengerter left a comment

Choose a reason for hiding this comment

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

LGTM!

@ownclouders
Copy link
Contributor

Results for oCISSharingAndUpload https://drone.owncloud.com/owncloud/web/22789/66/1
The following scenarios passed on retry:

  • webUIUpload/upload.feature:94

@ownclouders
Copy link
Contributor

Results for oCISSharingPublic1 https://drone.owncloud.com/owncloud/web/22789/67/1

💥 The acceptance tests failed on retry. Please find the screenshots inside ...

webUISharingPublicBasic-publicLinkCreate_feature-L190.png

webUISharingPublicBasic-publicLinkCreate_feature-L190.png

💥 The acceptance tests pipeline failed. The build has been cancelled.

@sonarcloud
Copy link

sonarcloud bot commented Feb 15, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@kulmann kulmann merged commit 45a1840 into master Feb 15, 2022
@delete-merged-branch delete-merged-branch bot deleted the router-view-name-catch branch February 15, 2022 16:18
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.

3 participants