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

Move OC.Plugins, OC.msg and OC.Notification to the server bundle #13938

Closed
wants to merge 4 commits into from

Conversation

ChristophWurst
Copy link
Member

This does not reduce the number of requests but slims down the dreaded js.js and brings the code into a maintainable format.

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

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

Still works 👍

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

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

Quick smoke tests did not do 💥

@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish 2. developing Work in progress and removed 3. to review Waiting for reviews 4. to release Ready to be released and/or waiting for tests to finish labels Jan 31, 2019
@ChristophWurst
Copy link
Member Author

jsunit isn't happy

@ChristophWurst ChristophWurst force-pushed the refactor/oc-plugins-msg-notifications branch from 9385637 to 52d388f Compare January 31, 2019 12:15
@ChristophWurst
Copy link
Member Author

The problem was that webpack hides exported functions behind es5 getters and sinon does not support them yet: sinonjs/sinon#1762. I use webpack/webpack#6979 (comment) as solution. It's not ideal as webpack can't do all optimizations but the current bundle did not grow in size.

@ChristophWurst ChristophWurst added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jan 31, 2019
@ChristophWurst
Copy link
Member Author

@MorrisJobke
Copy link
Member

🍿 https://drone.nextcloud.com/nextcloud/server/15387/264

💥

@ChristophWurst
Copy link
Member Author

Yeah … I have to investigate.

Can't find variable: oc_userconfig in core/js/dist/main.js

is what I see a lot. But that variable is set via php and I assume we add a stub for tests somewhere. I don't get how this changed in this PR.

@ChristophWurst
Copy link
Member Author

I have to do this a bit differently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants