[Bug] Spark application list loses pagination after editing
- Dominant language
- Java
- Stars
- 4.3k
- Forks
- 1.1k
- Avg merge
- 13h 35m
- Merged PRs (30d)
- 2
Description
### Search before asking
- [x] I searched existing issues and pull requests and found no similar report.
### Java Version
N/A (Web UI issue)
### Scala Version
2.12.x
### StreamPark Version
3.0.0-SNAPSHOT (`dev` branch)
### Flink Version
N/A
### Deploy mode
N/A
### What happened
On the Spark Application list, editing an application from page 2 or later and returning to the list resets the table to page 1.
The edit action stores the current page in session storage under `sparkAppPageNo`, while the Spark application list restores it from `appPageNo`. Because the keys do not match, the saved page is never restored.
Steps to reproduce:
1. Open the Spark Application list with enough applications for multiple pages.
2. Navigate to page 2 or later.
3. Click Edit on an application.
4. Return to the Spark Application list after editing.
Expected: the list returns to the previously selected page.
Actual: the list returns to page 1.
The equivalent Flink application flow consistently uses `appPageNo`.
### Error Exception
No exception is raised.
### Are you willing to submit PR?
- [x] Yes, I am willing to submit a PR.
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct.
Contributor guide
No contributing guide indexed for this repository
Research direction
Search the Spark application list and edit flow for `sparkAppPageNo` and `appPageNo`, then compare the equivalent Flink application flow. Reproduce the issue from page 2 or later, align the session-storage key with the list's restored key, and verify that returning from editing preserves the selected page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- spark
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 88/100