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

New: Add manifest-scoped-urls #2328

Merged
merged 9 commits into from
May 8, 2019

Conversation

shivangg
Copy link
Contributor

Pull request checklist

Make sure you:

For non-trivial changes, please make sure you also:

  • Added/Updated related documentation.
  • Added/Updated related tests.

Short description of the change(s)

Fixes #2058

Copy link
Member

@molant molant left a comment

Choose a reason for hiding this comment

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

Nice job, a few comments and requests for more tests but this is looking good.

packages/hint-manifest-scoped-urls/README.md Show resolved Hide resolved
packages/hint-manifest-scoped-urls/src/meta.ts Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/src/hint.ts Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/src/hint.ts Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/src/hint.ts Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/src/hint.ts Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/src/hint.ts Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/tests/tests.ts Outdated Show resolved Hide resolved
@@ -0,0 +1,84 @@
import { test } from '@hint/utils';
Copy link
Member

Choose a reason for hiding this comment

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

I think we should also test the local connector but I'm not sure how to check that things are correct because paths can be anything locally 🤔
@antross do you have any suggestion?

@molant
Copy link
Member

molant commented Apr 29, 2019

@shivangg also need to add location information when it makes sense (basically all cases except when the property doesn't exist I believe). Don't forget to add it to the tests as well!

@shivangg
Copy link
Contributor Author

shivangg commented May 1, 2019

@molant Added location information to reports as well as tests.

@molant
Copy link
Member

molant commented May 1, 2019

@shivangg looks like tests are failing. Can you please take a look at the output in Azure Pipelines

@shivangg shivangg force-pushed the feat/manifest-scoped-urls branch from 381d149 to 03b6198 Compare May 1, 2019 21:43
@shivangg
Copy link
Contributor Author

shivangg commented May 1, 2019

@molant Was failing a test case. Should pass now (Linux and windows).

@shivangg shivangg force-pushed the feat/manifest-scoped-urls branch from 03b6198 to 807e464 Compare May 2, 2019 13:07
@shivangg shivangg requested a review from molant May 2, 2019 13:56
@molant
Copy link
Member

molant commented May 2, 2019

@shivangg looks like Linux failed. I'm re-running it see if there's any change.

@shivangg shivangg added this to In progress in Pesto Apprenticeship May 2, 2019
@molant
Copy link
Member

molant commented May 2, 2019

And now it's passing 🎉

@molant
Copy link
Member

molant commented May 2, 2019

@antross we have the pending question of local connector. Maybe we should change the scope of this one to be web only for now?

Copy link
Member

@antross antross left a comment

Choose a reason for hiding this comment

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

Looking good overall. Just a few pieces we still need to sort out.

packages/hint-manifest-scoped-urls/README.md Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/src/meta.ts Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/src/meta.ts Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/src/hint.ts Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/README.md Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/README.md Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/README.md Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/README.md Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/src/hint.ts Outdated Show resolved Hide resolved
Copy link
Member

@molant molant left a comment

Choose a reason for hiding this comment

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

Very minor things, I think that's all about strings. It's looking really good!

Copy link
Member

@antross antross left a comment

Choose a reason for hiding this comment

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

Looks like a few of the tests are failing in CI:

  • ✖ [chrome] Manifest property start_url is relative and inaccessible. No reports match "Specified 'start_url' is not accessible. Status code: '404'." or its location ({"column":21,"line":2}).
  • ✖ [chrome] No start_url property specified in Manifest file No reports match "Property 'start_url' not found in manifest file." or its location ({"column":-1,"line":-1}).
  • ✖ [chrome] Manifest property start_url has preceding / and scoped but inaccessible No reports match "Specified 'start_url' is not accessible. Status code: '404'." or its location ({"column":21,"line":2}).

Otherwise just some minor cleanup suggestions. Once the tests are fixed this should be ready to merge.

packages/hint-manifest-scoped-urls/README.md Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/README.md Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/src/hint.ts Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/src/hint.ts Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/src/hint.ts Outdated Show resolved Hide resolved
packages/hint-manifest-scoped-urls/src/hint.ts Outdated Show resolved Hide resolved
As per code review suggestions

Co-Authored-By: shivangg <shivangg@users.noreply.github.com>
@shivangg shivangg force-pushed the feat/manifest-scoped-urls branch from 62357cf to d8ce622 Compare May 6, 2019 18:06
@shivangg shivangg requested review from antross and molant May 7, 2019 17:49
@shivangg
Copy link
Contributor Author

shivangg commented May 7, 2019

All tests passing now. 😄

Copy link
Member

@antross antross 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 to me. Nice work @shivangg! 🎉

@molant
Copy link
Member

molant commented May 7, 2019

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@molant
Copy link
Member

molant commented May 7, 2019

@antross @shivangg now that we have code coverage back I'm going to run CI again to make sure we meet the threshold.

@shivangg
Copy link
Contributor Author

shivangg commented May 7, 2019

@molant It passes the thresholds in the Azure pipelines.

@molant molant merged commit d492bee into webhintio:master May 8, 2019
Pesto Apprenticeship automation moved this from In progress to Done May 8, 2019
@shivangg shivangg deleted the feat/manifest-scoped-urls branch May 8, 2019 04:01
@shivangg shivangg self-assigned this May 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

[Feature] Include hints for validating PWAs manifest content
3 participants