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

[COST-3829] API to read/update source/target tag mappings #4905

Merged
merged 58 commits into from
Feb 14, 2024
Merged

Conversation

bacciotti
Copy link
Contributor

Jira Ticket

COST-3829

Description

This change will create the Tag Mapping API CRUD and its unit tests.

Testing

  1. Checkout Branch
  2. Restart Koku
  3. Hit endpoints
    1. v1/settings/tag_mappings/
    2. v1/settings/tag_mappings/child
    3. v1/settings/tag_mappings/child/add
    4. v1/settings/tag_mappings/child/remove
    5. v1/settings/tag_mappings/parent
    6. v1/settings/tag_mappings/parent/remove
  4. Run unit tests tox -e py39 -- api.settings.test.tag_mappings.test_view.SettingsTagMappingViewTestCase

myersCody and others added 30 commits January 15, 2024 15:15
Implementing some changes to match the API Expectations doc.

Fixing put method and tests.

Creating "remove" endpoints and its unit tests.

Create and implement /child endpoint (ChildView).

Creating TagMappingChildView filtering.

Child view test.

Parent endpoint and its unit tests.

wip

wip

Fixing filter.

Tests
Copy link
Member

@maskarb maskarb left a comment

Choose a reason for hiding this comment

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

Some initial feedback:

koku/api/settings/tag_mappings/query_handler.py Outdated Show resolved Hide resolved
koku/api/settings/tag_mappings/serializers.py Outdated Show resolved Hide resolved
koku/api/settings/tag_mappings/view.py Outdated Show resolved Hide resolved
koku/api/settings/test/tag_mappings/test_view.py Outdated Show resolved Hide resolved
koku/api/settings/test/tag_mappings/test_view.py Outdated Show resolved Hide resolved
koku/api/settings/test/tag_mappings/test_view.py Outdated Show resolved Hide resolved
koku/api/settings/test/tag_mappings/test_view.py Outdated Show resolved Hide resolved
koku/api/settings/tag_mappings/view.py Outdated Show resolved Hide resolved
koku/api/settings/tag_mappings/view.py Outdated Show resolved Hide resolved
koku/api/settings/tag_mappings/view.py Outdated Show resolved Hide resolved
@myersCody myersCody removed the smoke-tests pr_check will build the image and run minimal required smokes label Feb 13, 2024
@myersCody myersCody added the smoke-tests pr_check will build the image and run minimal required smokes label Feb 13, 2024
Copy link
Member

@maskarb maskarb left a comment

Choose a reason for hiding this comment

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

Just one question, otherwise it looks pretty good!

koku/api/settings/tags/mapping/serializers.py Outdated Show resolved Hide resolved
@maskarb
Copy link
Member

maskarb commented Feb 14, 2024

/retest

@bacciotti bacciotti merged commit d9abce7 into main Feb 14, 2024
11 checks passed
@bacciotti bacciotti deleted the tag_mapping branch February 14, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
smoke-tests pr_check will build the image and run minimal required smokes smokes-required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants