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

188651851 v3 DI Multiple Y Attributes #1683

Merged
merged 8 commits into from
Dec 13, 2024

Conversation

tealefristoe
Copy link
Contributor

@tealefristoe tealefristoe commented Dec 11, 2024

PT Story: https://www.pivotaltracker.com/story/show/188651851

This PR adds support for multiple y attributes in graph API requests.

  • A graph with multiple y attributes can be created via yAttributeIDs or yAttirbuteNames in create component requests.
  • yAttributeIDs and yAttributeNames are now included in responses to get component requests for graphs.
  • Multiple y attributes can be set for a graph via yAttributeIDs or yAttributeNames in update component requests.

Additional bug fixes:

  • A bug in get component responses was fixed in this PR. Previously, attribute ids returned were v3 format, that is, strings starting with "ATTR". Now attribute ids returned are in v2 format, just the number part.
  • The dummy model used in create component type: table requests is now destroyed after a snapshot is taken of it. Previously, this model was not being garbage collected and reactions associated it were continuing to fire.
  • GraphDataConfigurationModel now overrides handleDataSetChange, a function called in a reaction defined in DataConfigurationModel. The base function always sets the number of filteredCases to one, which was preventing dots for multiple y attributes from showing up on freshly created graphs. Now, the proper number of filteredCases is set for graphs when the dataset changes.

@tealefristoe tealefristoe marked this pull request as draft December 11, 2024 21:40
@tealefristoe tealefristoe added the v3 CODAP v3 label Dec 11, 2024
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.78%. Comparing base (607a0a3) to head (5fe757d).
Report is 20 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1683      +/-   ##
==========================================
- Coverage   85.81%   85.78%   -0.04%     
==========================================
  Files         607      607              
  Lines       30840    30957     +117     
  Branches     8535     8506      -29     
==========================================
+ Hits        26465    26555      +90     
- Misses       4057     4080      +23     
- Partials      318      322       +4     
Flag Coverage Δ
cypress 74.83% <27.84%> (-0.41%) ⬇️
jest 53.52% <98.78%> (+0.20%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

cypress bot commented Dec 11, 2024

codap-v3    Run #5546

Run Properties:  status check passed Passed #5546  •  git commit 6c2e921d88: 188651851 v3 DI Multiple Y Attributes (#1683)
Project codap-v3
Branch Review main
Run status status check passed Passed #5546
Run duration 06m 14s
Commit git commit 6c2e921d88: 188651851 v3 DI Multiple Y Attributes (#1683)
Committer Teale Fristoe
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 36
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 220
View all changes introduced in this branch ↗︎

…ltiple y-attributes the `graphDataConfigurationModel` has the desired number of subArrays in its filteredCases array.
Copy link
Member

@kswenson kswenson left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@tealefristoe tealefristoe merged commit 6c2e921 into main Dec 13, 2024
20 of 21 checks passed
@tealefristoe tealefristoe deleted the 188651851-v3-di-multiple-y-attributes branch December 13, 2024 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants