You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "nicob3y (via GitHub)" <gi...@apache.org> on 2025/12/31 17:48:10 UTC
[PR] Fixes (table charts v1 & v2): pagination, translation and search by [superset]
nicob3y opened a new pull request, #36881:
URL: https://github.com/apache/superset/pull/36881
## **User description**
### SUMMARY
Fixing several issues with "Table" and "Table V2" plugins.
"**Table**":
When server-side pagination is used, a "Search by" selector is displayed: it lists columns by their name rather than by their label, unlike the "Table V2" chart. I therefore made the necessary changes so that labels are used.
<img width="903" height="292" alt="image" src="https://github.com/user-attachments/assets/ba1ad8ab-bd58-45a0-9477-3d89656750a3" />
"**Table V2**":
When server-side pagination is used, the "Page Size" selector does not behave as expected: the value configured for the chart is not applied correctly and the default value is applied (it is fine on initial display but is lost afterwards, for example when resizing the window).
<img width="901" height="526" alt="image" src="https://github.com/user-attachments/assets/2b6d1683-9fa2-4035-a79a-78bc06f3b39b" />
"**Table**" and "**Table V2**":
Some strings could not be translated because the "t()" function intended for this purpose was not used.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "SBIN2010 (via GitHub)" <gi...@apache.org>.
SBIN2010 commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-3792790005
Superset uses Git pre-commit hooks courtesy of [pre-commit](https://pre-commit.com/). To install run the following:
pip3 install -r requirements/development.txt
pre-commit install
A series of checks will now run when you make a git commit.
Alternatively it is possible to run pre-commit by running pre-commit manually:
pre-commit run --all-files
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-3792497110
Please let us know if you intend to address/refute the bot suggestions, and we'll go from there.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "alexandrusoare (via GitHub)" <gi...@apache.org>.
alexandrusoare commented on code in PR #36881:
URL: https://github.com/apache/superset/pull/36881#discussion_r2726932597
##########
superset-frontend/plugins/plugin-chart-ag-grid-table/src/AgGridTable/index.tsx:
##########
@@ -593,11 +593,7 @@ const AgGridDataTable: FunctionComponent<AgGridTableProps> = memo(
{serverPagination && (
<Pagination
currentPage={serverPaginationData?.currentPage || 0}
- pageSize={
- hasServerPageLengthChanged
- ? serverPageLength
- : serverPaginationData?.pageSize || 10
- }
+ pageSize={serverPaginationData?.pageSize ?? serverPageLength}
Review Comment:
I agree with Amaan
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] Fixes (table charts v1 & v2): pagination, translation and search by [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-3702599029
CodeAnt AI finished reviewing your PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] Fixes (table charts v1 & v2): pagination, translation and search by [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-3702592149
CodeAnt AI is reviewing your PR.
---
### Thanks for using CodeAnt! ๐
We're free for open-source projects. if you're enjoying it, help us grow by sharing.
[Share on X](https://twitter.com/intent/tweet?text=Just%20tried%20%40CodeAntAI%20for%20automated%20code%20review%20and%20I%27m%20impressed%21%20Free%20for%20open%20source%20with%20a%20free%20trial%20for%20private%20repos.%20Worth%20checking%20out%3A&url=https%3A//codeant.ai) ยท
[Reddit](https://www.reddit.com/submit?title=Check%20out%20CodeAnt%20for%20automated%20code%20review&text=Just%20tried%20CodeAnt%20for%20automated%20code%20review%20and%20I%27m%20impressed%21%20Free%20for%20open%20source%20with%20a%20free%20trial%20for%20private%20repos.%20Worth%20checking%20out%3A%20https%3A//codeant.ai) ยท
[LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcodeant.ai&mini=true&title=Check%20out%20CodeAnt%20for%20automated%20code%20review&summary=Just%20tried%20CodeAnt%20for%20automated%20code%20review%20and%20I%27m%20impressed%21%20Free%20for%20open%20source%20with%20a%20free%20trial%20for%20private%20repos)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] Fixes (table charts v1 & v2): pagination, translation and search by [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on code in PR #36881:
URL: https://github.com/apache/superset/pull/36881#discussion_r2655719692
##########
superset-frontend/plugins/plugin-chart-ag-grid-table/src/AgGridTable/index.tsx:
##########
@@ -387,7 +387,7 @@ const AgGridDataTable: FunctionComponent<AgGridTableProps> = memo(
<div className="search-container">
{serverPagination && (
<div className="search-by-text-container">
- <span className="search-by-text"> Search by :</span>
+ <span className="search-by-text"> {t('Search by')} :</span>
Review Comment:
**Suggestion:** Internationalization bug: the colon (":") is placed outside the translated string and there's an extra leading space before the translated text; in some languages the colon placement differs or spacing is significant, so leaving the colon outside `t(...)` will make translation incorrect and the visible leading space is unintended. Put the colon inside the translation and remove the stray space so translators can position punctuation correctly. [logic error]
**Severity Level:** Minor โ ๏ธ
```suggestion
<span className="search-by-text">{t('Search by:')}</span>
```
<details>
<summary><b>Why it matters? โญ </b></summary>
This is a valid i18n issue: punctuation and spacing can be language-dependent, and the stray leading space will render oddly. Moving the colon into the translation key lets translators place punctuation correctly. Note: changing the translation key will require updating the translation catalog/extraction so existing translations don't disappear.
</details>
<details>
<summary><b>Prompt for AI Agent ๐ค </b></summary>
```mdx
This is a comment left during a code review.
**Path:** superset-frontend/plugins/plugin-chart-ag-grid-table/src/AgGridTable/index.tsx
**Line:** 390:390
**Comment:**
*Logic Error: Internationalization bug: the colon (":") is placed outside the translated string and there's an extra leading space before the translated text; in some languages the colon placement differs or spacing is significant, so leaving the colon outside `t(...)` will make translation incorrect and the visible leading space is unintended. Put the colon inside the translation and remove the stray space so translators can position punctuation correctly.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
```
</details>
##########
superset-frontend/plugins/plugin-chart-ag-grid-table/src/AgGridTable/index.tsx:
##########
@@ -525,11 +525,7 @@ const AgGridDataTable: FunctionComponent<AgGridTableProps> = memo(
{serverPagination && (
<Pagination
currentPage={serverPaginationData?.currentPage || 0}
- pageSize={
- hasServerPageLengthChanged
- ? serverPageLength
- : serverPaginationData?.pageSize || 10
- }
+ pageSize={serverPaginationData?.pageSize ?? serverPageLength}
Review Comment:
**Suggestion:** Type/runtime bug: `serverPaginationData?.pageSize` can be a string or undefined and is passed directly to `pageSize`; that may give the Pagination component an invalid type or undefined value. Coerce the resolved value to a number and provide a safe numeric fallback so the prop always receives a number. [type error]
**Severity Level:** Minor โ ๏ธ
```suggestion
pageSize={Number(serverPaginationData?.pageSize ?? serverPageLength ?? 0)}
```
<details>
<summary><b>Why it matters? โญ </b></summary>
serverPaginationData is a JsonObject and pageSize may be a string or undefined at runtime. Coercing to Number (with a safe fallback) prevents passing a non-numeric value into Pagination which likely expects a number and avoids runtime/typing issues.
</details>
<details>
<summary><b>Prompt for AI Agent ๐ค </b></summary>
```mdx
This is a comment left during a code review.
**Path:** superset-frontend/plugins/plugin-chart-ag-grid-table/src/AgGridTable/index.tsx
**Line:** 528:528
**Comment:**
*Type Error: Type/runtime bug: `serverPaginationData?.pageSize` can be a string or undefined and is passed directly to `pageSize`; that may give the Pagination component an invalid type or undefined value. Coerce the resolved value to a number and provide a safe numeric fallback so the prop always receives a number.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
```
</details>
##########
superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:
##########
@@ -885,6 +886,7 @@ export default function TableChart<D extends DataRecord = DataRecord>(
// typing is incorrect in current version of `@types/react-table`
// so we ask TS not to check.
columnKey: key,
+ columnLabel: label,
Review Comment:
**Suggestion:** Logic bug: `columnLabel` is set to the original `label` variable but the code computes and mutates `displayLabel` to account for comparison columns; using `label` here means `columnLabel` will not reflect the final displayed label (e.g., it won't pick up blanking or formatted display for comparison columns). Replace the assignment to use `displayLabel` so `columnLabel` matches what the header actually shows. [logic error]
**Severity Level:** Minor โ ๏ธ
```suggestion
columnLabel: displayLabel,
```
<details>
<summary><b>Why it matters? โญ </b></summary>
The function computes `displayLabel` to reflect the final visible header (including special-casing comparison columns and blanking). The current code returns `columnLabel: label` which will not match what the Header renders (`displayLabel`). Changing to `columnLabel: displayLabel` fixes that logic mismatch and will make downstream features (search options, UIs that show column labels) consistent with the rendered header. This is a real behavioral bugfix and safe because `displayLabel` is already defined in the same scope.
</details>
<details>
<summary><b>Prompt for AI Agent ๐ค </b></summary>
```mdx
This is a comment left during a code review.
**Path:** superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx
**Line:** 889:889
**Comment:**
*Logic Error: Logic bug: `columnLabel` is set to the original `label` variable but the code computes and mutates `displayLabel` to account for comparison columns; using `label` here means `columnLabel` will not reflect the final displayed label (e.g., it won't pick up blanking or formatted display for comparison columns). Replace the assignment to use `displayLabel` so `columnLabel` matches what the header actually shows.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
```
</details>
##########
superset-frontend/plugins/plugin-chart-table/src/DataTable/DataTable.tsx:
##########
@@ -561,7 +561,7 @@ export default typedMemo(function DataTable<D extends object>({
<Flex wrap align="center" gap="middle">
{serverPagination && (
<Space size="small" className="search-select-container">
- <span className="search-by-label">Search by:</span>
+ <span className="search-by-label">{t('Search by')}:</span>
Review Comment:
**Suggestion:** Internationalization bug: the colon punctuation is appended outside the translated string (`{t('Search by')}:`), which prevents translators from handling punctuation correctly for other languages; include the colon inside the translation call so the entire phrase (including punctuation) can be localized. [possible bug]
**Severity Level:** Critical ๐จ
```suggestion
<span className="search-by-label">{t('Search by:')}</span>
```
<details>
<summary><b>Why it matters? โญ </b></summary>
This is a valid i18n improvement. Keeping the colon outside the translated string prevents translators from moving or removing punctuation for target languages where punctuation rules differ. Including the colon in the translation (e.g., t('Search by:')) allows full localization control and avoids awkward translations.
</details>
<details>
<summary><b>Prompt for AI Agent ๐ค </b></summary>
```mdx
This is a comment left during a code review.
**Path:** superset-frontend/plugins/plugin-chart-table/src/DataTable/DataTable.tsx
**Line:** 564:564
**Comment:**
*Possible Bug: Internationalization bug: the colon punctuation is appended outside the translated string (`{t('Search by')}:`), which prevents translators from handling punctuation correctly for other languages; include the colon inside the translation call so the entire phrase (including punctuation) can be localized.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "amaannawab923 (via GitHub)" <gi...@apache.org>.
amaannawab923 commented on code in PR #36881:
URL: https://github.com/apache/superset/pull/36881#discussion_r2724539209
##########
superset-frontend/plugins/plugin-chart-ag-grid-table/src/AgGridTable/index.tsx:
##########
@@ -593,11 +593,7 @@ const AgGridDataTable: FunctionComponent<AgGridTableProps> = memo(
{serverPagination && (
<Pagination
currentPage={serverPaginationData?.currentPage || 0}
- pageSize={
- hasServerPageLengthChanged
- ? serverPageLength
- : serverPaginationData?.pageSize || 10
- }
+ pageSize={serverPaginationData?.pageSize ?? serverPageLength}
Review Comment:
We cannot remove the older code of hasServerPageLength Changed as it causes a discrepancy between the page length selected from the control panel and the one from the Page Size Selector
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-3725205874
๐ช [Showtime](https://github.com/mistercrunch/superset-showtime) is building environment on [GHA](https://github.com/apache/superset/actions/runs/20828055459) for [5c5370b](https://github.com/apache/superset/commit/5c5370b)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas merged PR #36881:
URL: https://github.com/apache/superset/pull/36881
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-3795428395
๐ช [Showtime](https://github.com/mistercrunch/superset-showtime) deployed environment on [GHA](https://github.com/apache/superset/actions/runs/21320542741) for [677e8c1](https://github.com/apache/superset/commit/677e8c1)
โข **Environment:** http://16.146.120.221:8080 (admin/admin)
โข **Lifetime:** 48h auto-cleanup
โข **Updates:** New commits create fresh environments automatically
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "amaannawab923 (via GitHub)" <gi...@apache.org>.
amaannawab923 commented on code in PR #36881:
URL: https://github.com/apache/superset/pull/36881#discussion_r2728203749
##########
superset-frontend/plugins/plugin-chart-ag-grid-table/src/AgGridTable/index.tsx:
##########
@@ -593,11 +593,7 @@ const AgGridDataTable: FunctionComponent<AgGridTableProps> = memo(
{serverPagination && (
<Pagination
currentPage={serverPaginationData?.currentPage || 0}
- pageSize={
- hasServerPageLengthChanged
- ? serverPageLength
- : serverPaginationData?.pageSize || 10
- }
+ pageSize={serverPaginationData?.pageSize ?? serverPageLength}
Review Comment:
http://16.146.120.221:8080/superset/welcome/ , it shows no data here , so cant confirm on the above
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] Fixes (table charts v1 & v2): pagination, translation and search by [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-3702597950
## Nitpicks ๐
<table>
<tr><td>๐ <strong>No security issues identified</strong></td></tr>
<tr><td>โก <strong>Recommended areas for review</strong><br><br>
- [ ] <a href='https://github.com/apache/superset/pull/36881/files#diff-fd855b910f6e482f1edd136d6c77cb64626f04fbfcef4c487a72aa0e75779ff0R528-R528'><strong>Pagination pageSize fallback</strong></a><br>The pageSize passed to <Pagination> now uses `serverPaginationData?.pageSize ?? serverPageLength`. If both values are undefined this can pass `undefined` to the Pagination component (previous logic guaranteed a numeric default of 10). Also removing the previous conditional that used `hasServerPageLengthChanged` may re-introduce edge-cases where explore/editor changes aren't applied as before. Verify intended behavior across all cases (initial render, editor updates, and resize).<br>
- [ ] <a href='https://github.com/apache/superset/pull/36881/files#diff-d987d4addee4ccb4cccae5bb4376bdf7915776d6e8631f9a777abfa98c08c9a0R794-R920'><strong>Label vs originalLabel</strong></a><br>The PR introduces a `columnLabel` (display label) derived from `config.customColumnName || originalLabel`, but many comparisons and grouping decisions rely on `column.label` or `column.originalLabel`. This mix of "display label" vs "original label" may cause misclassification of "comparison" columns, incorrect grouping, or inconsistent aria/ID mapping. Verify all places that compare labels (e.g., `comparisonLabels.includes(...)`, header grouping logic, and className logic) use the intended source consistently.<br>
- [ ] <a href='https://github.com/apache/superset/pull/36881/files#diff-bd919fa26ebe6f116bb11bdeb0fd42d9044597bf0e7066e6a2528ea8ba8c3f4eR564-R569'><strong>Accessibility</strong></a><br>A visible label "Search by" was added as a plain <span>. Ensure the label is programmatically associated with the SearchSelectDropdown (via aria-labelledby / aria-label or a <label htmlFor>) so screen readers can correctly identify the control.<br>
- [ ] <a href='https://github.com/apache/superset/pull/36881/files#diff-d987d4addee4ccb4cccae5bb4376bdf7915776d6e8631f9a777abfa98c08c9a0R1235-R1261'><strong>Search options effect</strong></a><br>The effect that builds `searchOptions` depends on both `columns` and `searchOptions`. While it guards with `isEqual`, having the external state in the dependency list risks extra runs or subtle update loops. Consider deriving and setting `searchOptions` only when `columns` change, or using a ref to compare previous value.<br>
- [ ] <a href='https://github.com/apache/superset/pull/36881/files#diff-fd855b910f6e482f1edd136d6c77cb64626f04fbfcef4c487a72aa0e75779ff0R390-R390'><strong>Translation formatting</strong></a><br>The added translated label includes surrounding whitespace and a colon outside the translation call. This can cause inconsistent punctuation in some languages and double space in the UI. Decide whether the colon should be part of the translation or appended, and remove the extra leading space before the translated string for consistent rendering.<br>
</td></tr>
</table>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] Fixes (table charts v1 & v2): pagination, translation and search by [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-3702592218
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-3793301528
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers a full AI review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "netlify[bot] (via GitHub)" <gi...@apache.org>.
netlify[bot] commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-3792577882
### <span aria-hidden="true">โ
</span> Deploy Preview for *superset-docs-preview* ready!
| Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">๐จ</span> Latest commit | e0c5f65b98a4916ff265f942a0361f14f3b0b157 |
|<span aria-hidden="true">๐</span> Latest deploy log | https://app.netlify.com/projects/superset-docs-preview/deploys/6973e97e919d2c0008beaa5e |
|<span aria-hidden="true">๐</span> Deploy Preview | [https://deploy-preview-36881--superset-docs-preview.netlify.app](https://deploy-preview-36881--superset-docs-preview.netlify.app) |
|<span aria-hidden="true">๐ฑ</span> Preview on mobile | <details><summary> Toggle QR Code... </summary><br /><br /><br /><br />_Use your smartphone camera to open QR code link._</details> |
---
<!-- [superset-docs-preview Preview](https://deploy-preview-36881--superset-docs-preview.netlify.app) -->
_To edit notification comments on pull requests, go to your [Netlify project configuration](https://app.netlify.com/projects/superset-docs-preview/configuration/notifications#deploy-notifications)._
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "nicob3y (via GitHub)" <gi...@apache.org>.
nicob3y commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-4648073557
Hello,
I am updating this PR; since its creation a lot of things have been fixed in the code base. However, there are still 2 things to fix in my opinion:
- the use of column labels in the search dropdown when server-side pagination is active
- the translation of the message "No data found"
I've updated my branch accordingly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-3725276509
๐ช [Showtime](https://github.com/mistercrunch/superset-showtime) deployed environment on [GHA](https://github.com/apache/superset/actions/runs/20828055459) for [5c5370b](https://github.com/apache/superset/commit/5c5370b)
โข **Environment:** http://44.246.229.68:8080 (admin/admin)
โข **Lifetime:** 48h auto-cleanup
โข **Updates:** New commits create fresh environments automatically
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "amaannawab923 (via GitHub)" <gi...@apache.org>.
amaannawab923 commented on code in PR #36881:
URL: https://github.com/apache/superset/pull/36881#discussion_r2724536420
##########
superset-frontend/plugins/plugin-chart-ag-grid-table/src/AgGridTable/index.tsx:
##########
@@ -525,11 +525,7 @@ const AgGridDataTable: FunctionComponent<AgGridTableProps> = memo(
{serverPagination && (
<Pagination
currentPage={serverPaginationData?.currentPage || 0}
- pageSize={
- hasServerPageLengthChanged
- ? serverPageLength
- : serverPaginationData?.pageSize || 10
- }
+ pageSize={serverPaginationData?.pageSize ?? serverPageLength}
Review Comment:
We cannot remove the older code of hasServerPageLength Changed as it causes a discrepancy between the page length selected from the control panel and the one from the Page Size Selector
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "nicob3y (via GitHub)" <gi...@apache.org>.
nicob3y commented on code in PR #36881:
URL: https://github.com/apache/superset/pull/36881#discussion_r2723005661
##########
superset-frontend/plugins/plugin-chart-ag-grid-table/src/AgGridTable/index.tsx:
##########
@@ -387,7 +387,7 @@ const AgGridDataTable: FunctionComponent<AgGridTableProps> = memo(
<div className="search-container">
{serverPagination && (
<div className="search-by-text-container">
- <span className="search-by-text"> Search by :</span>
+ <span className="search-by-text"> {t('Search by')} :</span>
Review Comment:
applied
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "nicob3y (via GitHub)" <gi...@apache.org>.
nicob3y commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-3792771828
Okay; I applied what seemed relevant to me, and pushed one last fix (PR description updated)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "nicob3y (via GitHub)" <gi...@apache.org>.
nicob3y commented on code in PR #36881:
URL: https://github.com/apache/superset/pull/36881#discussion_r2722978328
##########
superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:
##########
@@ -885,6 +886,7 @@ export default function TableChart<D extends DataRecord = DataRecord>(
// typing is incorrect in current version of `@types/react-table`
// so we ask TS not to check.
columnKey: key,
+ columnLabel: label,
Review Comment:
suggestion applied manually
##########
superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:
##########
@@ -885,6 +886,7 @@ export default function TableChart<D extends DataRecord = DataRecord>(
// typing is incorrect in current version of `@types/react-table`
// so we ask TS not to check.
columnKey: key,
+ columnLabel: label,
Review Comment:
suggestion applied manually
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-3792882022
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers a full AI review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-3795402254
๐ช [Showtime](https://github.com/mistercrunch/superset-showtime) is building environment on [GHA](https://github.com/apache/superset/actions/runs/21320542741) for [677e8c1](https://github.com/apache/superset/commit/677e8c1)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-4648223271
## [Codecov](https://app.codecov.io/gh/apache/superset/pull/36881?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 64.14%. Comparing base ([`06f95f5`](https://app.codecov.io/gh/apache/superset/commit/06f95f536233e8dda706e0cbb5ea31ba8342c0ce?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`9f8d78e`](https://app.codecov.io/gh/apache/superset/commit/9f8d78e43889285a456efddfc3081a179041348b?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 1 commits behind head on master.
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #36881 +/- ##
==========================================
- Coverage 64.14% 64.14% -0.01%
==========================================
Files 2652 2652
Lines 143482 143482
Branches 33108 33108
==========================================
- Hits 92037 92036 -1
- Misses 49836 49837 +1
Partials 1609 1609
```
| [Flag](https://app.codecov.io/gh/apache/superset/pull/36881/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage ฮ | |
|---|---|---|
| [javascript](https://app.codecov.io/gh/apache/superset/pull/36881/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `67.86% <100.00%> (-0.01%)` | :arrow_down: |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/superset/pull/36881?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-4669567652
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers a full AI review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "nicob3y (via GitHub)" <gi...@apache.org>.
nicob3y commented on code in PR #36881:
URL: https://github.com/apache/superset/pull/36881#discussion_r2722980119
##########
superset-frontend/plugins/plugin-chart-table/src/DataTable/DataTable.tsx:
##########
@@ -561,7 +561,7 @@ export default typedMemo(function DataTable<D extends object>({
<Flex wrap align="center" gap="middle">
{serverPagination && (
<Space size="small" className="search-select-container">
- <span className="search-by-label">Search by:</span>
+ <span className="search-by-label">{t('Search by')}:</span>
Review Comment:
suggestion applied manually
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "nicob3y (via GitHub)" <gi...@apache.org>.
nicob3y commented on code in PR #36881:
URL: https://github.com/apache/superset/pull/36881#discussion_r2728178184
##########
superset-frontend/plugins/plugin-chart-ag-grid-table/src/AgGridTable/index.tsx:
##########
@@ -593,11 +593,7 @@ const AgGridDataTable: FunctionComponent<AgGridTableProps> = memo(
{serverPagination && (
<Pagination
currentPage={serverPaginationData?.currentPage || 0}
- pageSize={
- hasServerPageLengthChanged
- ? serverPageLength
- : serverPaginationData?.pageSize || 10
- }
+ pageSize={serverPaginationData?.pageSize ?? serverPageLength}
Review Comment:
Hmm, I'm sorry but I don't see any discrepancy in my test environment - maybe I'm missing it; however, if I undo my patch, I can clearly see the original problem reappear; not knowing what to do on my end, I'll let you suggest another solution.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "amaannawab923 (via GitHub)" <gi...@apache.org>.
amaannawab923 commented on code in PR #36881:
URL: https://github.com/apache/superset/pull/36881#discussion_r2728201060
##########
superset-frontend/plugins/plugin-chart-ag-grid-table/src/AgGridTable/index.tsx:
##########
@@ -593,11 +593,7 @@ const AgGridDataTable: FunctionComponent<AgGridTableProps> = memo(
{serverPagination && (
<Pagination
currentPage={serverPaginationData?.currentPage || 0}
- pageSize={
- hasServerPageLengthChanged
- ? serverPageLength
- : serverPaginationData?.pageSize || 10
- }
+ pageSize={serverPaginationData?.pageSize ?? serverPageLength}
Review Comment:
Please check the usage of hasServerPageLengthChanged , it was added due to handling of Server Page Size , Also i am unable to verify anything at all as the test environment shows no data so i cant confirm whether the discrepancy exists or not
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-4648037612
<!-- translation-regression-bot -->
## โ ๏ธ Translation Regression Detected
A source change in this PR renamed or reworded strings, invalidating existing translations (they are now `#, fuzzy`) in `ar`, `ca`, `cs`, `de`, `fi`, `fr`, `it`, `ja`, `ko`, `lv`, `mi`, `nl`, `pt`, `ru`, `sk`, `sl`, `th`, `tr`, `uk`. Please resolve the affected `.po` files before merging.
_Note: intentionally **deleting** a translatable string is not a regression and is not flagged here โ only translations invalidated by a renamed/reworded source string are._
| Language | Fuzzy before | Fuzzy after | New |
|----------|-------------:|------------:|----:|
| `ar` | 1136 | 1137 | +1 |
| `ca` | 815 | 816 | +1 |
| `cs` | 787 | 788 | +1 |
| `de` | 997 | 998 | +1 |
| `fi` | 4823 | 4824 | +1 |
| `fr` | 1014 | 1015 | +1 |
| `it` | 1667 | 1668 | +1 |
| `ja` | 322 | 323 | +1 |
| `ko` | 1521 | 1522 | +1 |
| `lv` | 295 | 296 | +1 |
| `mi` | 807 | 808 | +1 |
| `nl` | 1143 | 1144 | +1 |
| `pt` | 1839 | 1840 | +1 |
| `ru` | 293 | 294 | +1 |
| `sk` | 774 | 775 | +1 |
| `sl` | 963 | 964 | +1 |
| `th` | 4823 | 4824 | +1 |
| `tr` | 786 | 787 | +1 |
| `uk` | 293 | 294 | +1 |
### How to fix
**1. Install dependencies** (if not already set up):
```bash
pip install -r superset/translations/requirements.txt
sudo apt-get install gettext # or: brew install gettext
```
**2. Re-extract strings and sync `.po` files:**
```bash
./scripts/translations/babel_update.sh
```
This rewrites `superset/translations/messages.pot` from the current source files and merges the changes into every `.po` file. Strings whose `msgid` changed will be marked `#, fuzzy`.
**3. Resolve the fuzzy entries** in the affected language files (`ar`, `ca`, `cs`, `de`, `fi`, `fr`, `it`, `ja`, `ko`, `lv`, `mi`, `nl`, `pt`, `ru`, `sk`, `sl`, `th`, `tr`, `uk`):
```bash
grep -n '#, fuzzy' superset/translations/<lang>/LC_MESSAGES/messages.po
```
For each fuzzy entry, either rewrite the `msgstr` to match the new string and remove the `#, fuzzy` line, or clear the `msgstr` to `""` if you cannot provide a translation.
**4. Commit your changes to the `.po` files.**
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(table charts v1 & v2): pagination, translation and search by [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #36881:
URL: https://github.com/apache/superset/pull/36881#issuecomment-4649557618
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers a full AI review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org