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

Fix marketplace data fetching #15447

Merged
merged 1 commit into from Jan 16, 2023

Conversation

remidej
Copy link
Contributor

@remidej remidej commented Jan 13, 2023

What does it do?

  • Fix axios data fetching after they introduced a breaking change in a minor release
  • Remove the code to filter out v3 plugins

Why is it needed?

  • axios was updated in the main branch at some point, the error popped up when merging main into the feature branch
  • we don't have v3 plugins anymore

Provide information about the environment and the path to verify the behaviour.

Related issue(s)/PR(s)

axios/axios#5113

@codecov
Copy link

codecov bot commented Jan 13, 2023

Codecov Report

Base: 49.80% // Head: 65.11% // Increases project coverage by +15.31% 🎉

Coverage data is based on head (c302f36) compared to base (d0236ee).
Patch coverage: 73.25% of modified lines in pull request are covered.

Additional details and impacted files
@@                      Coverage Diff                       @@
##           feature/market-pagination   #15447       +/-   ##
==============================================================
+ Coverage                      49.80%   65.11%   +15.31%     
==============================================================
  Files                            290     1064      +774     
  Lines                          10184    22947    +12763     
  Branches                        2252     4084     +1832     
==============================================================
+ Hits                            5072    14942     +9870     
- Misses                          4214     7055     +2841     
- Partials                         898      950       +52     
Flag Coverage Δ
front 65.11% <73.25%> (?)
unit ?
unit_front 65.11% <73.25%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...re/admin/admin/src/components/GlobalStyle/index.js 66.66% <ø> (ø)
.../components/GuidedTour/Modal/components/Content.js 68.42% <0.00%> (ø)
...onents/EditViewDataManagerProvider/utils/schema.js 7.46% <0.00%> (ø)
.../src/content-manager/components/InputJSON/index.js 31.64% <ø> (ø)
...-manager/components/RelationInput/RelationInput.js 90.90% <ø> (ø)
.../RepeatableComponent/AccordionGroupCustom/index.js 31.57% <ø> (ø)
...nt-manager/components/RepeatableComponent/index.js 33.76% <0.00%> (ø)
...-manager/components/SingleTypeFormWrapper/index.js 11.64% <0.00%> (ø)
...src/content-manager/pages/EditView/Header/index.js 71.95% <ø> (ø)
...ntent-manager/pages/EditViewLayoutManager/index.js 50.00% <ø> (ø)
... and 1411 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@markkaylor markkaylor left a comment

Choose a reason for hiding this comment

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

Great, I didn't pull and test but I trust it works.

Comment on lines -12 to -17
// Only keep v4 plugins
const filteredResponse = {
...response,
data: response.data.filter((plugin) => plugin.attributes.strapiCompatibility === 'v4'),
};

Copy link
Contributor

Choose a reason for hiding this comment

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

Should we update the proxy now to remove strapiCompatibility?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think we can because it would break the previous versions of strapi apps

@remidej remidej merged commit f4026aa into feature/market-pagination Jan 16, 2023
@remidej remidej deleted the market-pagination/fix-axios branch January 16, 2023 08:55
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.

None yet

2 participants