shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

[Volunteer] format SQL to improve code readability in shenyu-admin.

Open midnight2104 opened this issue 4 years ago • 39 comments

Description

Hi Community: This PR is to format the current SQL, following the principle of right-aligning keywords (Uppercase) and left-aligning fields. I would like to make this task a good first issue so that new comers can get involved in handling the rest of the SQL file. Do you think it's a good idea?

for example: before formatting:

select id, name, age from user where id = 1

after formatting

  SELECT id, 
         name, 
         age 
    FROM user
   WHERE id = 1

Task List

  • [x] 1. app-auth-sqlmap.xml @midnight2104
  • [x] 2. auth-param-sqlmap.xml @hutaishi
  • [x] 3. auth-path-sqlmap.xml @ShawnSiao
  • [x] 4. dashboard-user-sqlmap.xml @Jingwugate
  • [x] 5. data-permission-sqlmap.xml @Mayank-KS
  • [x] 6. meta-data-sqlmap.xml @selectbook
  • [x] 7. permission-sqlmap.xml @wklong
  • [x] 8. plugin-handle-sqlmap.xml joker-zxs
  • [x] 9. plugin-sqlmap.xml @zhangcly
  • [x] 10. resouce-sqlmap.xml @nydia
  • [x] 11. role-sqlmap.xml @Albertsirius
  • [x] 12. rule-condition-sqlmap.xml @UniverseInHeart
  • [x] 13. rule-sqlmap.xml @totalo
  • [x] 14. selector-condition-sqlmap.xml @lanseBlue
  • [x] 15. selector-sqlmap.xml @xiaheshun
  • [x] 16. shenyu-dict-sqlmap.xml @shallwetalkge
  • [x] 17. user-role-sqlmap.xml @erdengk

Notice: input about issue 3088 in your pr desc .

midnight2104 avatar Mar 22 '22 10:03 midnight2104

Can you randomly assign one of them to me? Thank you very much.

hutaishi avatar Mar 22 '22 13:03 hutaishi

Can you randomly assign one of them to me? Thank you very much.

thks for your contribution

midnight2104 avatar Mar 22 '22 13:03 midnight2104

hi,@midnight2104
Please assign me 17. user-role-sqlmap.xml

erdengk avatar Mar 22 '22 13:03 erdengk

hi,@midnight2104 Please assign me 17. user-role-sqlmap.xml

thks for your contribution

midnight2104 avatar Mar 22 '22 13:03 midnight2104

hi, can you assign 16. shenyu-dict-sqlmap.xml to me,thank you

shallwetalkge avatar Mar 22 '22 13:03 shallwetalkge

hi, can you assign 16. shenyu-dict-sqlmap.xml to me,thank you

Thks for your contribution.I look forward to hearing from you pr. Please contact me with any questions you may have.

midnight2104 avatar Mar 22 '22 13:03 midnight2104

Can you randomly assign one of them to me?

p8rtop avatar Mar 22 '22 13:03 p8rtop

Can you randomly assign one of them to me?

doen, 15. selector-sqlmap.xml

midnight2104 avatar Mar 22 '22 13:03 midnight2104

Can you randomly assign one of them to me? Thank you.

ok, 13. rule-sqlmap.xml for you, thanks.

totalo avatar Mar 22 '22 13:03 totalo

can you assign 14. selector-condition-sqlmap.xml to me thank you

lanseBlue avatar Mar 22 '22 14:03 lanseBlue

can you assign 14. selector-condition-sqlmap.xml to me thank you

Thks for your contribution.I'm looking forward to you PR. Please contact me with any questions you may have.

midnight2104 avatar Mar 22 '22 14:03 midnight2104

can you give me one not be format? thanks

UniverseInHeart avatar Mar 22 '22 14:03 UniverseInHeart

Can you assign one of files not formatted to me? thanks.

Albertsirius avatar Mar 22 '22 16:03 Albertsirius

Can you assign one of files not formatted to me? thanks.

11. role-sqlmap.xml for you, I'm looking forward to your PR.

midnight2104 avatar Mar 23 '22 00:03 midnight2104

Can you assign one of files not formatted to me? thanks.

you can do 12. rule-condition-sqlmap.xml

midnight2104 avatar Mar 23 '22 00:03 midnight2104

Can you assign one of files not formatted to me? thanks.

zhangcly avatar Mar 23 '22 00:03 zhangcly

Can you assign one of files not formatted to me? thanks.

nydia avatar Mar 23 '22 01:03 nydia

hi, can you assign 7. permission-sqlmap.xml to me,thank you

wklong avatar Mar 23 '22 02:03 wklong

hi, can you assign 7. permission-sqlmap.xml to me,thank you

yes,now you can do 7. permission-sqlmap.xml @wklong

haibo-duan avatar Mar 23 '22 02:03 haibo-duan

Can you assign one of files not formatted to me? thanks.

  1. plugin-sqlmap.xml for you . @zhangcly

haibo-duan avatar Mar 23 '22 02:03 haibo-duan