Skip to content

Comments

Make built-in code server setup more stable#3762

Merged
juliusknorr merged 4 commits intomainfrom
fix/code-autosetup-async
Jun 20, 2024
Merged

Make built-in code server setup more stable#3762
juliusknorr merged 4 commits intomainfrom
fix/code-autosetup-async

Conversation

@juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Jun 13, 2024

Best to be reviewed as individual commits for the frontend, backend changes are mostly moving code and adding proper status codes

  • chore: Refactor frontend capabilities to a service to be able to update on the fly
  • fix: Move auto setup of built-in code server to an async request done by the frontend
  • Add typescript support for eslint and fix errors

Can be tested with:

  • occ app:enable richdocumentscode
  • occ config:app:delete richdocuments wopi_url
  • Reload the file list
  • Now a request happens that autoconfigures the built-in code server (if you are admin and it is not configured yet)
  • Once succeeded it will update the capabilities in the frontend which makes the viewer work

Fixes #1282

@juliusknorr juliusknorr requested review from blizzz and elzody June 13, 2024 12:41
@juliusknorr juliusknorr added bug Something isn't working 3. to review Ready to be reviewed labels Jun 13, 2024
@juliusknorr juliusknorr added this to the Nextcloud 30 milestone Jun 13, 2024
Copy link
Collaborator

@elzody elzody left a comment

Choose a reason for hiding this comment

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

Looks good other than the error

Property oc_isadmin does not exist on type Window & typeof globalThis

Not sure about it

@juliusknorr juliusknorr force-pushed the fix/code-autosetup-async branch from 10dd482 to e9ec318 Compare June 14, 2024 05:30
@juliusknorr juliusknorr force-pushed the fix/code-autosetup-async branch from e9ec318 to 4158fbe Compare June 14, 2024 08:49
@juliusknorr
Copy link
Member Author

Fixed, I missed to add the types file for those

@juliusknorr juliusknorr requested a review from elzody June 14, 2024 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Ready to be reviewed bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RichDocuments built-in CODE causes significant slowdown/timeout issues

2 participants