Skip to content

Conversation

@sarutak
Copy link
Member

@sarutak sarutak commented Apr 17, 2020

What changes were proposed in this pull request?

This PR backports #28217 to branch-3.0, making each id attribute for page navigations in a page unique.

PagedTable#pageNavigation returns HTML elements representing a page navigation for a paged table.
In the current implementation, the method generates an id and it's used for id attribute for a set of elements for the page navigation.
But some pages have two page navigations so there are two set of elements where corresponding elements have the same id.
For example, there are two form-completedJob-table-page id in JobsPage.

Why are the changes needed?

Each id attribute should be unique in a page.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

I added a test case for pageNavigation extended.
I also manually tested that there were no warning messages for the uniqueness in JobsPage and JobPage.

@dongjoon-hyun
Copy link
Member

Thank you, @sarutak !

@SparkQA
Copy link

SparkQA commented Apr 17, 2020

Test build #121421 has finished for PR 28246 at commit fe152e2.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Merged to branch-3.0.

dongjoon-hyun pushed a commit that referenced this pull request Apr 17, 2020
…le to have different id attribute

### What changes were proposed in this pull request?

This PR backports #28217 to `branch-3.0`, making each id attribute for page navigations in a page unique.

PagedTable#pageNavigation returns HTML elements representing a page navigation for a paged table.
In the current implementation, the method generates an id and it's used for id attribute for a set of elements for the page navigation.
But some pages have two page navigations so there are two set of elements where corresponding elements have the same id.
For example, there are two form-completedJob-table-page id in JobsPage.

### Why are the changes needed?

Each id attribute should be unique in a page.

### Does this PR introduce any user-facing change?

No.

### How was this patch tested?

I added a test case for pageNavigation extended.
I also manually tested that there were no warning messages for the uniqueness in JobsPage and JobPage.

Closes #28246 from sarutak/backporting-SPARK-31446-branch-3.0.

Authored-by: Kousuke Saruta <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants