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

Remove play-iteratees #25176

Merged
merged 3 commits into from
Jul 5, 2022
Merged

Remove play-iteratees #25176

merged 3 commits into from
Jul 5, 2022

Conversation

ioannakok
Copy link
Contributor

@ioannakok ioannakok commented Jul 1, 2022

What does this change?

As part of the Scala 2.13 upgrade we need to remove the play-iteratees library because it is no longer supported and there is no 2.13 version. We're replacing it with the paginateAccum CAPI client method. The play-iteratees library was used to fully list all keyword & series tags, for two purposes:

Index pages

Does this change need to be reproduced in dotcom-rendering ?

  • No
  • Yes (please indicate your plans for DCR Implementation)

Screenshots

What is the value of this and can you measure success?

Checklist

Does this affect other platforms?

  • AMP
  • Apps
  • Other (please specify)

Does this affect GLabs Paid Content Pages? Should it have support for Paid Content?

  • No
  • Yes (please give details)

Does this change break ad-free?

  • No
  • It did, but tests caught it and I fixed it
  • It did, but there was no test coverage so I added that then fixed it

Does this change update the version of CAPI we're using?

Accessibility test checklist

Tested

  • Locally
  • On CODE (optional)

As part of the Scala 2.13 upgrade we need to remove the play-iteratees library because it is no longer supported and there is no 2.13 version. The relevant code was rewritten using paginateAccum CAPI client method.

Co-authored-by: Roberto Tyley <roberto.tyley@guardian.co.uk>
@ioannakok ioannakok force-pushed the roberto_ioanna/remove-play-iteratees branch from 3a5d810 to 843ce4e Compare July 1, 2022 14:36
ioannakok and others added 2 commits July 1, 2022 17:03
Co-authored-by: Roberto Tyley <roberto.tyley@guardian.co.uk>
Co-authored-by: Roberto Tyley <roberto.tyley@guardian.co.uk>
@ioannakok
Copy link
Contributor Author

ioannakok commented Jul 1, 2022

We grabbed a copy of the index data that is stored by the RebuildIndexJob for CODE using this command:

aws s3 cp s3://aws-frontend-pressed/CODE/index . --recursive --profile frontend

We are planning to delete them from the bucket, deploy this branch to CODE and see if the bucket gets populated with the data again.

indexes-s3-content.zip

@ioannakok
Copy link
Contributor Author

Index data got deleted from bucket and our branch was deployed in CODE. Bucket got populated with new data:
after-deploying-our-branch.zip

I ran diff -rq indexes-s3-content after-deploying-our-branch and we got some diffs

Files indexes-s3-content/contributors/1-9.json and after-deploying-our-branch/contributors/1-9.json differ
Files indexes-s3-content/contributors/e.json and after-deploying-our-branch/contributors/e.json differ
Files indexes-s3-content/contributors/g.json and after-deploying-our-branch/contributors/g.json differ
Files indexes-s3-content/contributors/r.json and after-deploying-our-branch/contributors/r.json differ
Files indexes-s3-content/keywords/c.json and after-deploying-our-branch/keywords/c.json differ
Files indexes-s3-content/keywords/t.json and after-deploying-our-branch/keywords/t.json differ
Files indexes-s3-content/keywords_by_section/news.json and after-deploying-our-branch/keywords_by_section/news.json differ
Only in indexes-s3-content/keywords_by_section: weather.json
Files indexes-s3-content/keywords_by_section/world.json and after-deploying-our-branch/keywords_by_section/world.json differ

Because indexes-s3-content got downloaded from the bucket on 1/7, I redeployed main in CODE, waited for the job to run (https://github.com/guardian/frontend/blob/main/admin/app/model/AdminLifecycle.scala#L85) and downloaded the new data:
after-deploying-main.zip

diff -rq after-deploying-main after-deploying-our-branch gave no diff.

@ioannakok ioannakok marked this pull request as ready for review July 5, 2022 11:08
@ioannakok ioannakok requested a review from a team as a code owner July 5, 2022 11:08
Copy link
Contributor

@OllysCoding OllysCoding left a comment

Choose a reason for hiding this comment

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

+1 Great work :)

@ioannakok ioannakok merged commit beda111 into main Jul 5, 2022
@ioannakok ioannakok deleted the roberto_ioanna/remove-play-iteratees branch July 5, 2022 14:01
@prout-bot
Copy link
Collaborator

Seen on PROD (merged by @ioannakok 11 minutes and 53 seconds ago)

@rtyley
Copy link
Member

rtyley commented Jul 5, 2022

@rtyley rtyley mentioned this pull request Jul 27, 2022
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scala 2.13 See https://github.com/guardian/maintaining-scala-projects/issues/2 Seen-on-PROD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants