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

Results keys are in mixed order after Find #10

Open
davellx opened this issue Jul 18, 2024 · 0 comments
Open

Results keys are in mixed order after Find #10

davellx opened this issue Jul 18, 2024 · 0 comments
Assignees
Labels
area/plugin Plugin-related issue or feature request bug Something isn't working good first issue Great issue for new contributors

Comments

@davellx
Copy link

davellx commented Jul 18, 2024

Expected Behavior

When a request is made with Find(), the order of the keys of the results should be the same as the results sent by mongodb.

It can be corrected afterward with another task but when the keys are dynamic i'ts not very practical.

Actual Behaviour

The order of keys get mixed.

Steps To Reproduce

1/ Create a new collection
2/ add those documents
[{"test": "test-1", "foo": "bar"}, {"test": "test-2", "foo": "fighters"}]
3/ request the collection with Find
4/ the result (ion) should be something like :

[{test:"test-1",foo:"bar",_id:"6698f221e2dce5061cfdf3da"}
{test:"test-2",foo:"fighters",_id:"6698f221e2dce5061cfdf3db"}]

the order of the keys is mixed, but when requested with mongo cli the order is respected.

Environment Information

  • Kestra Version: 0.17.4
  • Plugin version: I don't know how to find this information
  • Operating System (OS / Docker / Kubernetes): Docker and k8s
  • Java Version (If not docker):

Example flow

No response

@davellx davellx added the bug Something isn't working label Jul 18, 2024
@kestrabot kestrabot bot added this to Issues Jul 18, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Issues Jul 18, 2024
@anna-geller anna-geller added area/plugin Plugin-related issue or feature request kind/good-first-issue labels Aug 15, 2024
@tchiotludo tchiotludo added good first issue Great issue for new contributors and removed kind/good-first-issue labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/plugin Plugin-related issue or feature request bug Something isn't working good first issue Great issue for new contributors
Projects
Status: Backlog
Development

No branches or pull requests

4 participants