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

Table/column deletion checks and disabling fetched external table deletion #3477

Merged
merged 2 commits into from
Nov 22, 2021

Conversation

mike12345567
Copy link
Collaborator

Description

This PR brings an update to the UI to make sure the user is aware of the risks when deleting a table or a column, making sure that the user is aware of the risk attached with deleting them. For now I have also disabled the ability to delete tables which weren't created by Budibase in external SQL tables as this has quite a bit of risk attached to it as well. If we want to enable this again it is a very simple change, but this just makes sure that we are aware of which tables were created through Budibase and which ones were imported.

Screenshots

Table deletion:
image

Column deletion:
image

…e user understands what they are doing, also disabling external table deletion.
@mike12345567 mike12345567 self-assigned this Nov 22, 2021
@codecov-commenter
Copy link

codecov-commenter commented Nov 22, 2021

Codecov Report

Merging #3477 (9dfa8c7) into develop (7762c1c) will decrease coverage by 0.05%.
The diff coverage is 58.33%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #3477      +/-   ##
===========================================
- Coverage    68.89%   68.84%   -0.06%     
===========================================
  Files          137      137              
  Lines         4356     4365       +9     
  Branches       633      636       +3     
===========================================
+ Hits          3001     3005       +4     
- Misses         961      963       +2     
- Partials       394      397       +3     
Impacted Files Coverage Δ
...kages/server/src/api/controllers/table/external.js 8.02% <0.00%> (-0.25%) ⬇️
packages/server/src/threads/index.js 72.41% <75.00%> (-1.67%) ⬇️
packages/server/src/threads/automation.js 81.57% <100.00%> (+0.24%) ⬆️
packages/server/src/threads/query.js 68.96% <100.00%> (+2.29%) ⬆️

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 95fcaee...9dfa8c7. Read the comment docs.

…sed, also adding a fix for threading to disable it in development as node-ts was causing memory leaks on low memory systems (doesn't apply to production built version).
Copy link
Member

@aptkingston aptkingston left a comment

Choose a reason for hiding this comment

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

LGTM! Nice one, much safer now 👍

@mike12345567 mike12345567 merged commit 9dbe114 into develop Nov 22, 2021
@mike12345567 mike12345567 deleted the fix/table-col-deletion branch November 22, 2021 17:55
@github-actions github-actions bot locked and limited conversation to collaborators Nov 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants