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

527 custom field library tab #2693

Merged
merged 25 commits into from
Mar 6, 2023
Merged

Conversation

chriscalhoun1974
Copy link
Contributor

@chriscalhoun1974 chriscalhoun1974 commented Feb 24, 2023

Closes #527 #2659

Code Changes

  • Created ChooseFromLibrary component
  • Deleted CustomFieldSelector component
  • Updated CreateCustomFields, CreateCustomLists, CustomFieldsModal, and CustomInput custom fields components
  • Updates to CustomTextInput, CustomSelect, CustomCreatableSelect, and CustomTextArea components which format the error message to be displayed below the given input component

Screenshot 2023-02-24 at 10 03 05 AM

Steps to Confirm

  1. Run the make server command from a FidesPlus Terminal prompt
  2. Run npm i command from Fides Admin UI Terminal prompt
  3. Run npm run dev command from Fides Admin UI Terminal prompt
  4. Open a browser tab and navigate to http://localhost:3000
  5. Click the Management top nav menu item
  6. Click an edited resource such as Data Category, Data Use, or Data Subject
  7. Click the plus icon with the Add a custom field label
  8. Click the Create custom lists tab and enter the form data. Click the Save to library button.
  9. Click the Create custom fields tab and enter the form data. Click the Save button.
  10. Exit the Add custom field modal
  11. Click the plus icon with the Add a custom field label
  12. Click the Choose from library tab. Toggle the active status to off. Click the Save button.
  13. Verify that the custom field that you just marked inactive is not listed in Custom fields section of the edited resource.

Pre-Merge Checklist

Screen Shots

Screenshot 2023-02-24 at 10 05 54 AM
Screenshot 2023-02-24 at 10 06 39 AM

@chriscalhoun1974 chriscalhoun1974 marked this pull request as draft February 24, 2023 03:40
@cypress
Copy link

cypress bot commented Feb 24, 2023

Passing run #654 ↗︎

0 3 0 0 Flakiness 0

Details:

Merge 7ef8ba3 into 1c39399...
Project: fides Commit: 10478fe6c3 ℹ️
Status: Passed Duration: 00:38 💡
Started: Mar 6, 2023 7:37 PM Ended: Mar 6, 2023 7:38 PM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@codecov
Copy link

codecov bot commented Feb 24, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (e07f896) 86.66% compared to head (7ef8ba3) 86.66%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2693   +/-   ##
=======================================
  Coverage   86.66%   86.66%           
=======================================
  Files         291      291           
  Lines       16458    16458           
  Branches     2114     2114           
=======================================
  Hits        14264    14264           
  Misses       1795     1795           
  Partials      399      399           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@chriscalhoun1974 chriscalhoun1974 marked this pull request as ready for review February 24, 2023 15:09
@chriscalhoun1974 chriscalhoun1974 requested review from a team and mfbrown February 24, 2023 15:59
Copy link

@mfbrown mfbrown left a comment

Choose a reason for hiding this comment

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

@chriscalhoun1974 attached a recording of one issue I found. When you re-enable a custom field that has an existing value, the value does not show unless you refresh the whole page.

https://www.loom.com/share/96e15f950c114dda87094ec9ab2f569f

@chriscalhoun1974
Copy link
Contributor Author

@mfbrown Loom issue has been resolved now.

@mfbrown
Copy link

mfbrown commented Feb 28, 2023

@mfbrown Loom issue has been resolved now.

@chriscalhoun1974 now the values seem to disappear when you click "Save"

https://www.loom.com/share/f96c3e1cec6a4d3eb24d3d1ecf069d3c

@chriscalhoun1974
Copy link
Contributor Author

@mfbrown Form value selections disappearing after you click the Save button has been resolved now.

@Kelsey-Ethyca Kelsey-Ethyca linked an issue Mar 1, 2023 that may be closed by this pull request
@mfbrown
Copy link

mfbrown commented Mar 1, 2023

The fix for the previous issue seems to have re-introduced the issue where re-enabled custom fields don't show their value.

https://www.loom.com/share/e104aebfb3e04221b8a1fd2bf1d3a087

cc: @Kelsey-Ethyca

@mfbrown
Copy link

mfbrown commented Mar 1, 2023

This PR does fix #2693 !

Copy link

@mfbrown mfbrown left a comment

Choose a reason for hiding this comment

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

LGTM - will create a follow up issue to address the inconsistencies with re-showing fields that have values.

@Kelsey-Ethyca Kelsey-Ethyca merged commit fe04764 into main Mar 6, 2023
@Kelsey-Ethyca Kelsey-Ethyca deleted the 527-custom-field-library-tab branch March 6, 2023 20:17
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.

FE: Custom field selections binding issue on Taxonomy tabs
3 participants