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

Backfill synonym slugs (DO NOT MERGE) #2785

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Courey
Copy link
Contributor

@Courey Courey commented Dec 13, 2024

DO NOT MERGE!!! for review only
closes #2784

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

Attention: Patch coverage is 0% with 28 lines in your changes missing coverage. Please review.

Project coverage is 5.91%. Comparing base (909af08) to head (51c2929).
Report is 100 commits behind head on main.

Files with missing lines Patch % Lines
app/backfill-synonym-slugs.js 0.00% 28 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main   #2785      +/-   ##
========================================
- Coverage   6.08%   5.91%   -0.17%     
========================================
  Files        171     172       +1     
  Lines       4340    4361      +21     
  Branches     476     480       +4     
========================================
- Hits         264     258       -6     
- Misses      4074    4101      +27     
  Partials       2       2              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lpsinger lpsinger changed the title DO NOT MERGE Backfill synonym slugs (DO NOT MERGE) Dec 16, 2024
@Courey Courey requested a review from lpsinger January 30, 2025 16:50
@Courey
Copy link
Contributor Author

Courey commented Feb 18, 2025

so I tried it without the region and it doesn't work without a region. Just for future reference. I added it back in and was able to run things fine.

@Courey Courey requested a review from lpsinger February 18, 2025 21:01
@lpsinger
Copy link
Member

so I tried it without the region and it doesn't work without a region. Just for future reference. I added it back in and was able to run things fine.

Interesting. I think I have AWS_REGION set in my environment; maybe that made a difference. Not important, though.

Comment on lines 20 to 23
} catch (error) {
console.error('Error fetching table name from SSM:', error)
throw error
}
Copy link
Member

Choose a reason for hiding this comment

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

FWIW, you could safely remove this entire try/except block. You'll get a good stack trace either way.

Comment on lines +27 to +28
const startTime = new Date()
console.log('Starting SYNONYM SLUG backfill... ', startTime)
Copy link
Member

Choose a reason for hiding this comment

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

@Courey
Copy link
Contributor Author

Courey commented Feb 20, 2025

There is no more test data to test this script. The only env left with data is prod.

@lpsinger
Copy link
Member

There is no more test data to test this script. The only env left with data is prod.

OK, what's your new test strategy? If we could only ever test this once, then perhaps we did not have an adequate test strategy.

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.

backfill existing synonyms to add slugs
2 participants