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

feat: add ocm app - #9896

Merged
dschmidt merged 63 commits into
masterfrom
ocm-app
Nov 14, 2023
Merged

dschmidt merged 63 commits into
masterfrom
ocm-app

Conversation

@JammingBen

@JammingBen JammingBen commented Oct 31, 2023 •

Copy link
Copy Markdown
Contributor

Description

Implements federated sharing between multiple oCIS instances via OpenCloudMesh (ocm). Key features of this PR:

  • New OCM app which is available via the app switcher menu (currently called ScienceMesh). There, users can see their existing connections, create new ones and accept invitations from other instances.
  • Allows users to choose if they want to share a file with internal or external (= federated) users (cern-only; in our case the server always searches for all available users, no matter if internal or external).
  • New action Open remotely lets users open federated shares on their original oC instance. We re-use most of the functionality for resolving public links for this. Auth handling works via a token coming from the backend.
  • New filters on the "Shared with me" and "Shared with others" pages to filter by share types

Note that this implementation is not yet productized and is therefore missing some more things. The main goal here is to get this working for CERN. See #9852 (comment) for more details.

Related Issue

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

Follow ups

See #9852 (comment)

@update-docs

update-docs Bot commented Oct 31, 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.

Comment thread dev/docker/ocis.web.config.json Resolved
Comment thread packages/web-app-ocm/src/index.ts Resolved
@JammingBen
JammingBen marked this pull request as ready for review November 13, 2023 14:17
Comment thread packages/web-app-ocm/src/views/App.vue Resolved

@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.

Some improvement ideas, but I can only approve it code wise, i just trust that it works :)

const extensionContextActions = computed(() => {
return extensionRegistry
.requestExtensions<ActionExtension>('action')
.filter(({ scopes }) => scopes.includes('files.context-menu'))

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.

I think I only saw context-menu defined as a scope, not files.context-menu. How is this supposed to work?

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.

We defined files.context-menu as scope. Maybe that also answers your other question you had about this. While files is actually the app, files.... is the context inside. Or at least that would explain our thought process behind it 😄

@sonarqubecloud

Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug D 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 21 Code Smells

16.7% 16.7% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@kulmann kulmann 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.

Let's merge and iterate... thanks to both of you @JammingBen @dschmidt for going down this rabbit hole! ❤️

@dschmidt
dschmidt merged commit 8066455 into master Nov 14, 2023
@delete-merged-branch
delete-merged-branch Bot deleted the ocm-app branch November 14, 2023 20:37
@dschmidt

Copy link
Copy Markdown
Member

🎉 🎉 🎉 🎉 🎉

ownclouders pushed a commit that referenced this pull request Nov 14, 2023
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.

OCM App

4 participants