-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Owner names not rendered in React Datasource editor #11680
Comments
@rusackas I believe this regression may be related to a recent change from Preset related to the Antd refactor. |
Thanks John, will investigate. |
@john-bodley hey John, im not able to reproduce it, do you have an idea which PR might cause it and when did you first notice it? |
@junlincc unsure. We believe this regression may have been introduced in one of these changes. |
I'm not able to repro this either yet. I would try a little |
@john-bodley could you help narrow it down a bit 🙏
|
@junlincc I'm going to see if the issue is present in our internal weekly deploy which occurs on Wednesday. If it's resolved it's likely our last week branch cut did not contain the commit and I'll close the issue, otherwise I'll dig into this in more detail. |
@junlincc and @rusackas I'm able to reproduce this from The logic is defined here and I only see one request to the |
@john-bodley thanks for the additional info we are looking into it! |
I found another JS bug for owners selector (besides the issue John just reported). this can be easily reproduced in open source master branch:
|
@junlincc Can you assign me please? |
@john-bodley I think that this issue might have been introduced by #11221. I'm not able to verify it as I can't directly reproduce this bug with my test data. Is it possible that the new endpoint |
@dpgaspar do you know of any differences between the |
One difference is that My guess is that because the existing owners is not in the list of select options it's resulting in this weird rendering issue. We may want to consider just switching back to |
@nytai I think your guess is correct - I could reproduce John's bug by limiting a page size. |
We could also send the request with |
We will probably go with
Where the endpoint would get filtered paginated data and make sure the requested ids were included on the response also. At a probable cost of a further query but still more efficient then sending back a very large payload |
Changing this into
Side issue: No request to
|
Hey @amitmiran137 , is Neilsen still planning on working on this? Thanks! |
@michael-s-molina do you think this is something that your async select work could help with? This seems to be a regression dating back to the original Antd refactor |
@etr2460 Yes. I'm tagging @geido here because he worked on this migration and has the full context. |
@etr2460 I don't think my current implementation would work for the Datasource settings specifically. You can check the code in this PR #16609 that is related to the owners in the Datasource settings. Basically, we would need a refactor of the There is another implementation which is using the paginated fetch instead and that's in the Properties modal. I have an env with more than 10 owners (10 as a pagesize limit) and could not spot any problem. I am about to merge this PR containing the changes. This can be a good opportunity to validate this issue against the new implementation #16445. |
there is a workaround to use the Legacy Datasource Editor. Aside from the list of owners not being rendered properly, this bug does block adding new owners beyond the 25 that are initially fetched which is a major issue. This should be fixed before we fully deprecate the legacy FAB views |
This is still an issue. @michael-s-molina please try with > 25 results |
The call to fetch owners is In order to repro this bug, you will need:
|
this appears to be fixed in the latest version (1.4.0)? |
Yup, looks like it was fixed by #17063 |
Expected results
The dataset owners should be rendered.
Actual results
How to reproduce the bug
Environment
(please complete the following information):
master
3.7
12
Checklist
Make sure to follow these steps before submitting your issue - thank you!
The text was updated successfully, but these errors were encountered: