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

fix: Dataset column names are no longer editable #18164

Merged

Conversation

lyndsiWilliams
Copy link
Member

SUMMARY

The name field in the column field of the edit dataset modal should not be editable.

Bonus: I also vertically-aligned the rows in the calculated columns tab

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

BEFORE

Columns tab:
columnsBefore

Calculated columns tab:
calculatedColumnsBefore

AFTER

Columns tab:
columnsAfter

Calculated columns tab:
calculatedColumnsAfter

TESTING INSTRUCTIONS

  • Open the edit dataset modal and observe the changes on the Columns tab and the Calculated Columns tab

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@hughhhh
Copy link
Member

hughhhh commented Jan 25, 2022

/testenv up

@github-actions
Copy link
Contributor

@hughhhh Container image not yet published for this PR. Please try again when build is complete.

@github-actions
Copy link
Contributor

@hughhhh Ephemeral environment creation failed. Please check the Actions logs for details.

@@ -78,7 +78,7 @@ describe('DatasourceEditor', () => {
});
userEvent.click(getToggles[0]);
const getTextboxes = screen.getAllByRole('textbox');
expect(getTextboxes.length).toEqual(12);
expect(getTextboxes.length).toEqual(5);
Copy link
Member

Choose a reason for hiding this comment

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

oh what caused this change?

Copy link
Member

Choose a reason for hiding this comment

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

The editable names were text boxes.

@codecov
Copy link

codecov bot commented Jan 25, 2022

Codecov Report

Merging #18164 (d178ea3) into master (fa104fe) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #18164   +/-   ##
=======================================
  Coverage   65.95%   65.95%           
=======================================
  Files        1584     1584           
  Lines       62063    62064    +1     
  Branches     6273     6273           
=======================================
+ Hits        40934    40935    +1     
  Misses      19508    19508           
  Partials     1621     1621           
Flag Coverage Δ
javascript 50.88% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...end/src/components/Datasource/DatasourceEditor.jsx 69.36% <100.00%> (+0.42%) ⬆️
...rc/explore/components/controls/TextAreaControl.jsx 80.00% <0.00%> (-4.22%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa104fe...d178ea3. Read the comment docs.

@yousoph
Copy link
Member

yousoph commented Jan 25, 2022

/testenv up

@github-actions
Copy link
Contributor

@yousoph Ephemeral environment spinning up at http://34.219.63.217:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

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

Looks great!

@@ -78,7 +78,7 @@ describe('DatasourceEditor', () => {
});
userEvent.click(getToggles[0]);
const getTextboxes = screen.getAllByRole('textbox');
expect(getTextboxes.length).toEqual(12);
expect(getTextboxes.length).toEqual(5);
Copy link
Member

Choose a reason for hiding this comment

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

The editable names were text boxes.

@lyndsiWilliams lyndsiWilliams merged commit 2491b89 into apache:master Jan 25, 2022
@lyndsiWilliams lyndsiWilliams deleted the lyndsi/fix-column-name-field branch January 25, 2022 20:35
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

shcoderAlex pushed a commit to casual-precision/superset that referenced this pull request Feb 7, 2022
ofekisr pushed a commit to nielsen-oss/superset that referenced this pull request Feb 8, 2022
bwang221 pushed a commit to casual-precision/superset that referenced this pull request Feb 10, 2022
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.5.0 labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels preset-io size/M 🚢 1.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants