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

Refactor Two Column to work with Delta Urls #1103

Merged
merged 23 commits into from
Dec 6, 2024

Conversation

Kirandawadi
Copy link
Collaborator

@Kirandawadi Kirandawadi commented Nov 21, 2024

Description

  • Develop Two Column Code to work with Delta Urls
  • Write test cases for paired field descriptor system for TDAMM tags that handles both manual and ML-generated tags.

Implementation Considerations

  • Develop paired_field_descriptor that will automatically create two fields (ML and manual) once defined inside the BaseUrl model
  • Write test cases with PyTest

Deliverable

All test cases implemented and passing:

  • Test the relationship between manual and ML fields
  • Test that manual field takes priority over ML field
  • Test handling of empty arrays vs None
  • Test deletion of fields
  • Test handling of multiple tags
  • Test that values persist after save
  • Test that tags are preserved even after collection migration and promotion

Dependencies

No response

@Kirandawadi Kirandawadi linked an issue Nov 21, 2024 that may be closed by this pull request
@Kirandawadi Kirandawadi changed the title 1093 write tests for two column tags functionality Refactor Two Column to work with Delta Urls Nov 21, 2024
Base automatically changed from 1051-backend-model-changes-on-cosmos-to-hold-new-incoming-urls-frontend to dev November 21, 2024 14:15
@Kirandawadi Kirandawadi self-assigned this Nov 21, 2024
url.tdamm_tag = ["MMA_M_EM"]
url.tdamm_tag_ml = ["MMA_M_G"]

# Delete tdamm_tag
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is fine, but lets write a doc that shows this behavior.

Copy link
Collaborator

@CarsonDavis CarsonDavis left a comment

Choose a reason for hiding this comment

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

LGTM

@CarsonDavis CarsonDavis merged commit b001d04 into dev Dec 6, 2024
5 checks passed
@CarsonDavis CarsonDavis deleted the 1093-write-tests-for-two-column-tags-functionality branch December 6, 2024 00:04
@CarsonDavis CarsonDavis restored the 1093-write-tests-for-two-column-tags-functionality branch December 6, 2024 00:05
@CarsonDavis CarsonDavis deleted the 1093-write-tests-for-two-column-tags-functionality branch December 6, 2024 00:06
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.

Refactor Two Column to work with Delta Urls ( Tests Included)
2 participants