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

[improvement][Resources] Improve details page return to the previous list page (#14951) #14954

Merged
merged 18 commits into from
Oct 13, 2023

Conversation

zhutong6688
Copy link
Contributor

Purpose of the pull request

Current Problem Is fix #14951 in any version of 3.1.x or 3.2.x or later version
The purpose of this modification is that when we are in the resource list, we click into the resource details page, and then return to the resource list, we can still return to the original resource list。

Brief change log

base on dev branch
add main improve code in dolphinscheduler-ui/src/views/resource/components/resource/edit/index.tsx
add main improve code in dolphinscheduler-ui/src/views/resource/components/resource/edit/use-edit.ts
add main improve code in dolphinscheduler-ui/src/views/resource/components/resource/table/use-table.ts
add main improve code dolphinscheduler-ui/src/views/resource/components/resource/index.tsx

Verify this pull request

This is the test verification of this improvement for problem #14951, as follows:
1、Query resource list unconditionally
图片
图片
图片
图片

2、Query resource list conditionally
图片
图片
图片
图片
图片

As can be seen from the above, whether in the case of conditional or unconditional query of resource files, when you enter the corresponding resource details page and click Save or Return, you can smoothly return to the previous resource list, greatly improving the development efficiency. Otherwise, you will return to the home page every time and lose the query conditions, which greatly reduces the development efficiency。

@github-actions github-actions bot added the UI ui and front end related label Sep 22, 2023
@pinkfloyds
Copy link
Contributor

@zhutong6688 Good job !

@zhutong6688
Copy link
Contributor Author

I use pinia to store data instead of using localStorage directly

@zhutong6688
Copy link
Contributor Author

I have applied this optimization to the dolphin scheduling used by our company, This Improvement has greatly improved the development efficiency and user experience.

@SbloodyS SbloodyS added 3.1.x for 3.1.x version 3.2.1 labels Oct 13, 2023
@SbloodyS SbloodyS added this to the 3.2.1 milestone Oct 13, 2023
@mergeable mergeable bot removed 3.1.x for 3.1.x version 3.2.1 labels Oct 13, 2023
@SbloodyS SbloodyS added bug Something isn't working 3.1.x for 3.1.x version 3.2.1 ready-to-merge labels Oct 13, 2023
Copy link
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

+1

@codecov-commenter
Copy link

codecov-commenter commented Oct 13, 2023

Codecov Report

Merging #14954 (51c1923) into dev (d983e36) will decrease coverage by 0.02%.
The diff coverage is n/a.

❗ Current head 51c1923 differs from pull request most recent head 0de348a. Consider uploading reports for the commit 0de348a to get more accurate results

@@             Coverage Diff              @@
##                dev   #14954      +/-   ##
============================================
- Coverage     38.90%   38.88%   -0.02%     
+ Complexity     4611     4610       -1     
============================================
  Files          1236     1236              
  Lines         43449    43449              
  Branches       4809     4809              
============================================
- Hits          16905    16897       -8     
- Misses        24670    24680      +10     
+ Partials       1874     1872       -2     

see 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@SbloodyS SbloodyS merged commit 166ef69 into apache:dev Oct 13, 2023
xdu-chenrj pushed a commit to xdu-chenrj/dolphinscheduler that referenced this pull request Oct 30, 2023
…list page (apache#14951) (apache#14954)

* Update ResourcesServiceImpl.java

* Update index.tsx

feature-14951:Improvement details page

* Update use-edit.ts

* Update use-table.ts

* Update index.tsx

* [improvement] improve details page return to the previous list page (apache#14951)

improve details page return to the previous list page

* [improvement] improve details page return to the previous list page (apache#14951)

improve details page return to the previous list page

* [improvement] improve details page return to the previous list page (apache#14951)

improve details page return to the previous list page

* [improvement] improve details page return to the previous list page (apache#14951)

improve details page return to the previous list page

* [improvement] improve details page return to the previous list page (apache#14951)

improve details page return to the previous list page

* [improvement] improve details page return to the previous list page (apache#14951)

improve details page return to the previous list page

---------

Co-authored-by: xiangzihao <460888207@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.1.x for 3.1.x version 3.2.1 bug Something isn't working ready-to-merge UI ui and front end related
Projects
None yet
5 participants