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

Incorrect object data on specific record on second page of results #817

Open
hlcianfagna opened this issue Jul 27, 2023 · 3 comments
Open

Comments

@hlcianfagna
Copy link
Contributor

Logging this as an AdminUI issue as it is not reproducible with crash

CrateDB version

5.4.0

Steps to Reproduce

CREATE TABLE adminuiissue (o OBJECT,descr TEXT);
INSERT INTO adminuiissue(o,descr) SELECT {},'This is another one' FROM generate_series(1,17);
INSERT INTO adminuiissue(o,descr) SELECT {},'Something else' FROM generate_series(1,81);
INSERT INTO adminuiissue(o,descr) SELECT '{"tschritter":{},"code":"abcde1","tz":"Europe","shifts":[],"assignees":{},"language":"de","id":123,"plant_key":"abcde1","stations":{}}','Look at this record';
-- From the AdminUI
SELECT * FROM adminuiissue ORDER BY descr ASC;
-- Expand the o object for "Look at this record", note there is data in there
SELECT * FROM adminuiissue ORDER BY descr DESC;
-- Go to the bottom of the second page of results 
-- expand the o object for "Look at this record"
-- note there is NO data in there
@hlcianfagna hlcianfagna added the triage An issue that needs to be triaged by a maintainer label Jul 27, 2023
@amotl amotl self-assigned this Aug 30, 2023
@amotl amotl added the bug label Jan 11, 2024
@amotl amotl removed their assignment Jan 12, 2024
@surister surister removed the triage An issue that needs to be triaged by a maintainer label Jan 16, 2024
@surister
Copy link

surister commented Jan 16, 2024

Confirmed, once the data paginates (+50 records), any object that is not on the first page doesn't show the data

@surister surister self-assigned this Jan 16, 2024
@surister
Copy link

surister commented Jan 22, 2024

If we just put the data on screen, it is there:

Image

but for some reason <formatted-object object="column.value" expand="false"></formatted-object> does not get the value when paginated, it never makes it to the scope:

Image

@surister surister added the ux label Jan 22, 2024
@surister surister removed their assignment Jan 25, 2024
@surister surister self-assigned this Feb 6, 2024
@surister
Copy link

surister commented Feb 9, 2024

Banging my head over this wall once again, same results, for some reason the data exists in the loop that creates the elements, but it never makes it to the element's scope. It is like if you call a function with a parameter, the parameter exists before calling the function, but then inside the function scope there parameter is None, makes no sense, no idea why angularjs is doing this dark magic.

I tried to test old versions, I managed to build until 231b863 (1.19.0 - 07/13/21) and the issue still persists, cannot build older since npm/node will just blow up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants