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

Try YAML based explorers #3333

Open
Marigold opened this issue Sep 30, 2024 · 2 comments
Open

Try YAML based explorers #3333

Marigold opened this issue Sep 30, 2024 · 2 comments
Labels
priority 3 - nice to have wontfix This will not be worked on

Comments

@Marigold
Copy link
Collaborator

Marigold commented Sep 30, 2024

Motivation

Our metadata is gradually converging into YAML files within the ETL pipeline, including dataset metadata, multi-dimensional indicators, and TSV files created by create_explorer (though technically stored in a config dictionary). YAML offers several benefits:

  • Improved readability
  • Schema validation
  • Autocompletion via Copilot
  • Support for placeholders and templating

It would be an interesting experiment to convert some TSV files into YAML and assess their user-friendliness.

Solution

Design a YAML schema similar to the one used for multi-dimensional indicators (mdims) and attempt to generate a TSV file from it. What are the differences between the mdims and explorer YAML files? If successful, this could be a first step toward unifying mdims and explorers under a YAML-based format.

Open Questions

  • Do we gain any advantages from switching to YAML files? Or would it be wiser to wait for a decision on merging explorers and mdims?
  • Can authors still make edits easily? (And do they actually do so?)
  • How do we preview explorers? (We could use staging servers for previews, similar to how we handle data pages.)
@larsyencken
Copy link
Collaborator

Totally agree that YAML is the better format. Perhaps the ideal starting point is a TSV blob in MySQL, which we could then try moving to/from some nicer YAML format.

Researchers still occasionally update explorers in the admin, but we believe it's less often that they create them now.

Copy link

stale bot commented Dec 19, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority 3 - nice to have wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants