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

Postprocessing state via SSE #9771

Merged
merged 4 commits into from
Oct 13, 2023
Merged

Postprocessing state via SSE #9771

merged 4 commits into from
Oct 13, 2023

Conversation

AlexAndBear
Copy link
Contributor

@AlexAndBear AlexAndBear commented Oct 6, 2023

Description

For testing please add this to your config:

      OCIS_ASYNC_UPLOADS: "true"
      POSTPROCESSING_DELAY: "5s"

Otherwise the postprocessing will be done before the webdav request announces the resource with processing=false

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
Copy link

update-docs bot commented Oct 6, 2023

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.

pnpm-lock.yaml Outdated Show resolved Hide resolved
@AlexAndBear AlexAndBear changed the title SSE WIP Postprocessing state via SSE Oct 11, 2023
Copy link
Member

@dschmidt dschmidt left a comment

Choose a reason for hiding this comment

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

sexy af

packages/web-client/src/sse.ts Show resolved Hide resolved
@@ -156,6 +158,10 @@ export class UserManager extends OidcUserManager {
})
this.initializeOwnCloudSdk(accessToken)

if (this.store.getters.capabilities?.core?.['support-sse']) {
;(this.clientService.sseAuthenticated as SSEAdapter).updateAccessToken(accessToken)
Copy link
Member

Choose a reason for hiding this comment

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

I still don't like this too much, but we tried to refactor it and it got complicated ... I'm ok as it seems to be the lesser evil for now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same here. I think we will need a tokenProvider and languageProvider in the client soon.

@AlexAndBear
Copy link
Contributor Author

sexy af

You too !

Copy link
Contributor

@JammingBen JammingBen left a comment

Choose a reason for hiding this comment

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

Awesome stuff 😍 The re-connect after language change would be important, the rest looks super good!

@sonarcloud
Copy link

sonarcloud bot commented Oct 13, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 2 Code Smells

70.4% 70.4% Coverage
0.0% 0.0% Duplication

@AlexAndBear AlexAndBear enabled auto-merge (squash) October 13, 2023 08:48
@AlexAndBear AlexAndBear merged commit 7c7d9fc into master Oct 13, 2023
2 checks passed
@delete-merged-branch delete-merged-branch bot deleted the sse-client branch October 13, 2023 09:08
AlexAndBear added a commit that referenced this pull request Dec 13, 2023
rewrite SSEClient and implement postprocessing-finished event management

---------

Co-authored-by: Paul Neubauer <[email protected]>
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.

[web] Implement Event "Postprocessing" Notifications are not shown in Firefox
4 participants