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 table for chart (and possibly other objects) revisions #4387

Merged
merged 4 commits into from
Jan 6, 2025

Conversation

lucasrodes
Copy link
Member

@lucasrodes lucasrodes commented Jan 6, 2025

Tracking issue

In owid/etl#3792 I'm working on a bot that will suggest a chart for revision daily. It'll be a public chart, that has few visits.

We want to avoid suggesting the same chart multiple times, so we need to track what has already been suggested. This PR adds a new table for that.

I had thought of a table named suggested_reviews, with columns id, type, date. Where type can be 'chart', 'dataset', etc.

@owidbot
Copy link
Contributor

owidbot commented Jan 6, 2025

Quick links (staging server):

Site Dev Site Preview Admin Wizard Docs

Login: ssh owid@staging-site-db-table-housekeeping

SVG tester:

Number of differences (default views): 0 ✅
Number of differences (all views): 0 ✅

Edited: 2025-01-06 15:32:24 UTC
Execution time: 1.27 seconds

@lucasrodes lucasrodes requested a review from Marigold January 6, 2025 17:31
Copy link
Contributor

@Marigold Marigold 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. If you plan to use it in ETL, it's a good idea to add it to grapher/model.py, too.

If you want to test the whole thing on staging, you can create a branch with the same name db-table-housekeeping in ETL. That staging server should then use PRs from both repos.

@lucasrodes lucasrodes merged commit 64fe17e into master Jan 6, 2025
12 checks passed
@lucasrodes lucasrodes deleted the db-table-housekeeping branch January 6, 2025 18:10
sophiamersmann pushed a commit that referenced this pull request Jan 8, 2025
danyx23 pushed a commit that referenced this pull request Jan 9, 2025
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.

3 participants