Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Don't break if Share role is not defined in frontend - #9339

Merged
AlexAndBear merged 6 commits into
masterfrom
issues/7164
Jul 3, 2023
Merged

AlexAndBear merged 6 commits into
masterfrom
issues/7164

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Jul 3, 2023 •

Copy link
Copy Markdown
Contributor

Description

If the share role is not defined in frontend but is technically possible like with permissions 3, we show 'Select a role' and fix that web breaks (exception)
image

Related Issue

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

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:

Open tasks:

  • ...

@update-docs

update-docs Bot commented Jul 3, 2023

Copy link
Copy Markdown

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@ownclouders

Copy link
Copy Markdown
Contributor

Results for e2e-tests oCIS-2 https://drone.owncloud.com/owncloud/web/37006/13/1
💥 The e2e-ocis tests pipeline failed. The build has been cancelled.

@lookacat lookacat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One small nitpick, but otherwise good 👍🏼

if (this.currentLinkRole.longLabel !== '') {
if (this.currentLinkRole?.longLabel !== '') {
return this.$gettext(this.currentLinkRole.longLabel)
} else {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

no else needed, but nitpick otherwise fine :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

True, I don't touch code usually while fixing but the else triggers me as well, lol

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

:D

@sonarqubecloud

sonarqubecloud Bot commented Jul 3, 2023

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@AlexAndBear
AlexAndBear enabled auto-merge (squash) July 3, 2023 15:18
@AlexAndBear
AlexAndBear merged commit 986f951 into master Jul 3, 2023
@delete-merged-branch
delete-merged-branch Bot deleted the issues/7164 branch July 3, 2023 15:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ocis] Shares sidebar does not show created public-link with Permission 3

4 participants