-
Notifications
You must be signed in to change notification settings - Fork 25k
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
feat(service-worker): add JSON schema for service worker config #27859
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work 💯
A couple of comments:
- Wrap property names/values in backticks or quotes (to make it clear you are referring to a property name/value).
- Change the commit message to match our guidelines; e.g.:
feat(service-worker): add JSON schema for service worker config
Fixes Feature Request: JSON Schema for @angular/service-worker #19847
For the commit message, I don't see what I'm not respecting from the contributing guidelines, it's just adding the "fixes" part right? |
It's the "fixes" part and adding |
@gkalpak Changes done. The bazel part (for copying the Should the fix of the doc (about the bad default for |
Integration test is failing but I don't think it's related to this PR. |
Thx, @cyrilletuzi!
Let's make it a separate PR so we can merge it into the patch branch as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there 😃 A couple of minor comments.
Changes done. (Again a Travis fail unrelated to this PR) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor comment. LGTM otherwise 🎉
BTW, it helps with reviews if you make subsequent changes in fixup commits (instead of amending the original commit)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just checked and it seems that schema.json
is not published in dist/packages-dist/
. (I had checked before and it was published, but maybe that was before moving it to service-worker/config/
.)
Maybe package.json
is special (in a way that schema.json
is not) and we should include schema.json
elsewhere. We need to pull in a bazel expert 😒
Change done. Who should we call for the bazel part? I tried your suggestion of using fixup commits. To be honest I didn't know this feature, does this mean I don't need to rebase anymore? |
Well...this doesn't change anything wrt to rebasing. (I.e. you didn't have to rebase before either, unless your branch had conflicts with master. The same is true when using |
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
@gkalpak I took the chance to add a last change, following feeback from my experience: as the goal is to ensure there are no errors in |
Thx, @cyrilletuzi. I will take a look at the changes. BTW, it would be better if we didn't work on the PR at the same time 😁 |
@gkalpak Yep, sorry, I've seen you were working at the same time at the moment I pushed. :/ |
I am done. CI is green. @cyrilletuzi, could you take care of #27859 (comment) (if needed)? |
@gkalpak You're totally right, it's fixed. I hope I didn't mess with your CI fixes, as I admit I'm quite lost with the git conflicts... |
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) ℹ️ Googlers: Go here for more info. |
Thx, @cyrilletuzi! (No worries about the git merge/rebase mess. I cleaned it up 😉) merge-asssitance: The |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
No assistance/validation in editor for service worker config.
Issue Number: Fixes #19847
With angular/angular-cli#13325, it will also fix angular/angular-cli#13324
What is the new behavior?
Assistance/validation in editor for service worker config.
Does this PR introduce a breaking change?
Other information
The schema follows
@angular/service-worker
interfaces (here).Descriptions come from the official documentation on angular.io (here).
Default values have been verified in
@angular/service-worker
code (here).I don't understand how the build works. When following the contributing guidelines, I can't see the static files that should be copied (like
safety-worker.js
andschema.json
) indist
builds. So this part have to be checked.As this is just an helper for development, this could be added in a patch version.
@gkalpak