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

Replace xdr with raw fetch #8626

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Replace xdr with raw fetch #8626

merged 1 commit into from
Nov 5, 2024

Conversation

wpears
Copy link
Member

@wpears wpears commented Nov 1, 2024

Rewrites the ajax code in chartbuilder to use raw fetch so we can remove xdr (then removes it).

return data;
});
});
});

return Promise.all(promises);
Copy link
Member

Choose a reason for hiding this comment

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

Do we need Promise.all(…) any longer, or can solely promises be returned? Not tested, but looking at the code it looks like we may have Promise.all(…) in there because the code had new Promise(…) and also the reference to xdr, which maybe created a promise of its own?

Copy link
Member Author

Choose a reason for hiding this comment

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

getData allows ; separated urls as source data and returns a single promise when they're all resolved. To preserve semantics, I think we should keep this as is.

@wpears wpears enabled auto-merge November 4, 2024 18:54
@wpears wpears added this pull request to the merge queue Nov 5, 2024
Merged via the queue into main with commit bf8b46a Nov 5, 2024
11 checks passed
@wpears wpears deleted the remove-xdr branch November 5, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants