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

Fix metadata order when downloading from data view #1748

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

henhuy
Copy link
Contributor

@henhuy henhuy commented Jun 25, 2024

Summary of the discussion

Fix inconsistent metadata structure

Type of change (CHANGELOG.md)

Changes

  • Metadata order when downloading from data view

Workflow checklist

Automation

Closes #1696

PR-Assignee

Reviewer

  • 🐙 Follow the Reviewer Guidelines
  • 🐙 Provided feedback and show sufficient appreciation for the work done

@henhuy henhuy self-assigned this Jun 25, 2024
Copy link
Contributor

@jh-RLI jh-RLI left a comment

Choose a reason for hiding this comment

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

We have agreed that branch names should only contain "-" and no "/" or "_" :) but don't change this here, just as an information for future branch names.

versions/changelogs/current.md Outdated Show resolved Hide resolved
# Metadata related #
##############################################

def order_metadata(metadata: dict) -> dict:
Copy link
Contributor

@jh-RLI jh-RLI Jul 1, 2024

Choose a reason for hiding this comment

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

👍 If you agree that this is good enough. There is still a slight difference (1. download while using the oemetabuilde 2. download while viewing the table detail page) because this only sorts the "top" level key´s. I think it's fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

could adapt this also, so that key order is preserved recursively

Copy link
Contributor

Choose a reason for hiding this comment

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

Right, that could be a quick solution. Then I would vote for implementing it : in favour of everything being as similar as possible.

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.

Inconsistens Metadata returns
2 participants