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 #17398 - Fixing clicking on JSON columns triggers update query #17976

Merged
merged 6 commits into from
Jan 20, 2023

Conversation

iifawzi
Copy link
Contributor

@iifawzi iifawzi commented Dec 19, 2022

Description

Hi, This PR is fixing the two issues mentioned at #17398
1- An update query is executed when clicking on the JSON columns
2- The JSON columns values are saved with unneeded spaces and lines when updated

Screen.Recording.2022-12-19.at.2.23.13.AM.mov

Fixes #17398

@codecov
Copy link

codecov bot commented Dec 19, 2022

Codecov Report

Base: 47.22% // Head: 47.73% // Increases project coverage by +0.50% 🎉

Coverage data is based on head (5bd1e90) compared to base (f7d9321).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff              @@
##             QA_5_2   #17976      +/-   ##
============================================
+ Coverage     47.22%   47.73%   +0.50%     
  Complexity    16825    16825              
============================================
  Files           602      602              
  Lines         71576    71576              
============================================
+ Hits          33805    34164     +359     
+ Misses        37771    37412     -359     
Flag Coverage Δ
dbase-extension 47.24% <ø> (+0.01%) ⬆️
recode-extension 48.29% <ø> (+1.09%) ⬆️
unit-7.2-ubuntu-latest 47.15% <ø> (-0.05%) ⬇️
unit-7.3-ubuntu-latest 47.63% <ø> (-0.05%) ⬇️
unit-7.4-ubuntu-latest 48.45% <ø> (+0.73%) ⬆️
unit-8.0-ubuntu-latest 47.68% <ø> (-0.79%) ⬇️
unit-8.1-ubuntu-latest 47.73% <ø> (+0.04%) ⬆️
unit-8.2-ubuntu-latest 47.68% <ø> (+0.02%) ⬆️

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

Impacted Files Coverage Δ
libraries/classes/Charsets.php 46.03% <0.00%> (-39.69%) ⬇️
libraries/classes/Header.php 88.29% <0.00%> (+1.00%) ⬆️
libraries/classes/StorageEngine.php 68.86% <0.00%> (+6.13%) ⬆️
libraries/classes/Config/Descriptions.php 99.46% <0.00%> (+39.44%) ⬆️

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.

@williamdes williamdes added this to the 5.2.1 milestone Dec 19, 2022
js/src/makegrid.js Outdated Show resolved Hide resolved
…e query

it also fixes the issue where the JSON columns are saved with spaces
and new lines, after being updated from the UI.

Fixes: phpmyadmin#17398
Signed-off-by: iifawzi <iifawzie@gmail.com>
… JS Function

Signed-off-by: iifawzi <iifawzie@gmail.com>
Signed-off-by: iifawzi <iifawzie@gmail.com>
Signed-off-by: Fawzi Abdulfattah <iifawzie@gmail.com>
js/src/functions.js Outdated Show resolved Hide resolved
js/src/functions.js Outdated Show resolved Hide resolved
Signed-off-by: Fawzi Abdulfattah <iifawzie@gmail.com>
Signed-off-by: Fawzi Abdulfattah <iifawzie@gmail.com>
Copy link
Member

@williamdes williamdes left a comment

Choose a reason for hiding this comment

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

💯

@williamdes williamdes self-assigned this Jan 20, 2023
@williamdes williamdes removed the request for review from MauricioFauth January 20, 2023 16:24
@williamdes williamdes merged commit f0951cb into phpmyadmin:QA_5_2 Jan 20, 2023
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.

None yet

3 participants