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

449 check client urls #460

Merged
merged 20 commits into from
Jul 16, 2021
Merged

Conversation

davidsmejia
Copy link
Contributor

@davidsmejia davidsmejia commented Jul 15, 2021

Same as before, but will merge after the new homepage changes are up.

Purpose

  • adds an Rscript that takes a single argument ( destination of a json file that lists urls ) and checks if the files and section id exists
  • adds a github action that calls the above script on PR's merging into the master branch with a url pointing to refinebio-frontend production list of refinebio-examples' urls

For any subsequent PRs, their checks will fail and present a list of the missing files and ids that correspond to any would be broken link. In order to pass you can request changes on the refinebio-frontend and rerun the Check Refinebio Frontend Urls action after the updates are deployed to get a passing result.

Issue addressed

#449

Gotchas the reviewer should know about

The order of PRs that should be merged would be

Remaining concerns and questions

I think logistically an improvement would be for the action to run both on master and staging prs to match against refinebio-frontend master or dev branch so staging so they could both be deployed at the same time.

davidsmejia and others added 7 commits July 12, 2021 16:40
Co-authored-by: Joshua Shapiro <josh.shapiro@ccdatalab.org>
Co-authored-by: Joshua Shapiro <josh.shapiro@ccdatalab.org>
Co-authored-by: Joshua Shapiro <josh.shapiro@ccdatalab.org>
@davidsmejia davidsmejia requested a review from jashapiro July 15, 2021 21:06
@davidsmejia davidsmejia marked this pull request as ready for review July 16, 2021 15:13
Copy link
Member

@jashapiro jashapiro left a comment

Choose a reason for hiding this comment

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

LGTM! (with one tiny comment)

.github/workflows/check-frontend-urls.yml Show resolved Hide resolved
@davidsmejia
Copy link
Contributor Author

Task failed successfully:

Please verify that the following file(s) exist:
index.html#this-should-fail
Error: Process completed with exit code 1.

@davidsmejia davidsmejia merged commit a2311ae into staging Jul 16, 2021
davidsmejia added a commit that referenced this pull request Jul 16, 2021
davidsmejia added a commit that referenced this pull request Jul 16, 2021
* add github action and script to check front end urls on front end production

* fix name

* use stringr functions

Co-authored-by: Joshua Shapiro <josh.shapiro@ccdatalab.org>

* move strsplit outside of loop

Co-authored-by: Joshua Shapiro <josh.shapiro@ccdatalab.org>

* use any + stringr:str_detect

Co-authored-by: Joshua Shapiro <josh.shapiro@ccdatalab.org>

* append -> c

* fix url source

* test the action on this push

* remove testing hook

* add one more test that should fail

* test on push

* making sure it used the correct list

* unique the expected files

* add missing semicolon

* fix how path ids are merged into the missing list

* R style points

* remove testing event hook

Co-authored-by: Joshua Shapiro <josh.shapiro@ccdatalab.org>
davidsmejia added a commit that referenced this pull request Jul 16, 2021
* 449 check client urls (#460)

* add github action and script to check front end urls on front end production

* fix name

* use stringr functions

Co-authored-by: Joshua Shapiro <josh.shapiro@ccdatalab.org>

* move strsplit outside of loop

Co-authored-by: Joshua Shapiro <josh.shapiro@ccdatalab.org>

* use any + stringr:str_detect

Co-authored-by: Joshua Shapiro <josh.shapiro@ccdatalab.org>

* append -> c

* fix url source

* test the action on this push

* remove testing hook

* add one more test that should fail

* test on push

* making sure it used the correct list

* unique the expected files

* add missing semicolon

* fix how path ids are merged into the missing list

* R style points

* remove testing event hook

Co-authored-by: Joshua Shapiro <josh.shapiro@ccdatalab.org>

* 449 check client urls (#468)

* add github action and script to check front end urls on front end production

* fix name

* use stringr functions

Co-authored-by: Joshua Shapiro <josh.shapiro@ccdatalab.org>

* move strsplit outside of loop

Co-authored-by: Joshua Shapiro <josh.shapiro@ccdatalab.org>

* use any + stringr:str_detect

Co-authored-by: Joshua Shapiro <josh.shapiro@ccdatalab.org>

* append -> c

* fix url source

* test the action on this push

* remove testing hook

* add one more test that should fail

* test on push

* making sure it used the correct list

* unique the expected files

* add missing semicolon

* fix how path ids are merged into the missing list

* R style points

* remove testing event hook

* use the production links list

Co-authored-by: Joshua Shapiro <josh.shapiro@ccdatalab.org>

Co-authored-by: Joshua Shapiro <josh.shapiro@ccdatalab.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants