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

Support external tags #816

Merged
merged 13 commits into from
Jul 15, 2022
Merged

Support external tags #816

merged 13 commits into from
Jul 15, 2022

Conversation

damirabdul
Copy link
Contributor

@damirabdul damirabdul commented Jul 13, 2022

What changes did you make? (Give an overview)

This PR introduces system tags and system labels to odd-platform.
Specification: opendatadiscovery/opendatadiscovery-specification#44

Platform can parse data entity tags, which come from collector and create relations between tags and data entities. If we already have such tag in the platform it will be just linked to the data entity, otherwise new tag will be created.
Those external relation will be shown in a different design and user will not be allowed to remove such tags from data entity.
Each set of tags represents the whole relations state, e.g. if data entity A had system tags [B, D] and then we received ingestion request where this entity A has system tags [C, D] it means, that we need to remove tag B and add tag C.

If tag has at least one external relation with data entity, it will not be allowed to edit/delete this tag from Management section.

All these statements are applied to relations between labels and dataset fields as well.

Closes #766

Is there anything you'd like reviewers to focus on?

How to test

It will be good to test all possible scenarios with different tags combination, e.g. create new data entity with system tags, add system tags to existing data entity, add system tags to existing data entity, which already has custom user tags, etc.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@NelyDavtyan NelyDavtyan requested a review from Leshe4ka July 14, 2022 13:48
@damirabdul damirabdul added scope: backend Backend task scope: frontend Frontend task kind: feature New feature request labels Jul 14, 2022
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@damirabdul damirabdul marked this pull request as ready for review July 15, 2022 10:02
@damirabdul damirabdul requested review from a team as code owners July 15, 2022 10:02
@github-actions

This comment has been minimized.

Copy link
Contributor

@Leshe4ka Leshe4ka left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions
Copy link

Test Results

  32 files    32 suites   50s ⏱️
160 tests 160 ✔️ 0 💤 0
161 runs  161 ✔️ 0 💤 0

Results for commit 3e58b8c.

@damirabdul damirabdul merged commit 537a696 into main Jul 15, 2022
@damirabdul damirabdul deleted the ingestion_tags branch July 15, 2022 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: feature New feature request scope: backend Backend task scope: frontend Frontend task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support tags coming to Ingestion API
4 participants