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

Drop special mimetype for karma test configuration #6883

Merged
merged 1 commit into from Jan 3, 2024

Conversation

matthiasblaesing
Copy link
Contributor

@matthiasblaesing matthiasblaesing commented Dec 26, 2023

The karma test configuration (default filename: karma.conf.js) was mapped to the special mimetype text/karmaconf+javascript.

The mimeresolver for that matched for all files, that ended with js and contained "karma" or "conf". This collides with the JS editor infrastructure, that does not allow for this subclassing. Oen such problem was, that for file JS folding was provided, but the fold types were not provided, raising exceptions from GsfFoldManager.

Instead of special casing the file to a mimetype, the action is now tied to all JS files, but only activated (and visible) on karma*.conf.js files.

Closes: #6879

The karma test configuration (default filename: karma.conf.js) was 
mapped to the special mimetype text/karmaconf+javascript.

The mimeresolver for that matched for all files, that ended with js and
contained "karma" or "conf". This collides with the JS editor
infrastructure, that does not allow for this subclassing. Oen such
problem was, that for file JS folding was provided, but the fold types
were not provided, raising exceptions from GsfFoldManager.

Instead of special casing the file to a mimetype, the action is now
tied to all JS files, but only activated (and visible) on karma*.conf.js
files.

Closes: apache#6879
@matthiasblaesing matthiasblaesing added JavaScript [ci] enable web job and extra JavaScript tests (webcommon/javascript2.editor) ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels Dec 26, 2023
@matthiasblaesing matthiasblaesing added this to the NB21 milestone Dec 26, 2023
Copy link
Member

@mbien mbien left a comment

Choose a reason for hiding this comment

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

makes sense, good fix!

@matthiasblaesing
Copy link
Contributor Author

@mbien thanks for review!

@matthiasblaesing matthiasblaesing merged commit bd15071 into apache:master Jan 3, 2024
34 checks passed
@matthiasblaesing matthiasblaesing deleted the javascript_config branch January 7, 2024 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) JavaScript [ci] enable web job and extra JavaScript tests (webcommon/javascript2.editor)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Navigator - No View Available
2 participants