-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
merge arrays in createDocObject and changed object equality function #7420
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7420 +/- ##
=======================================
Coverage 34.64% 34.64%
=======================================
Files 1308 1308
Lines 14393 14393
Branches 1422 1422
=======================================
Hits 4987 4987
Misses 8497 8497
Partials 909 909
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
Signed-off-by: gh0stsh0t <rjperias0213@gmail.com>
| areObjectsEquals: (obj1, obj2) => { | ||
| return JSON.stringify(obj1) === JSON.stringify(obj2); | ||
| // stringify to remove nested empty objects | ||
| return _.isEqual(JSON.parse(JSON.stringify(obj1)), JSON.parse(JSON.stringify(obj2))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you really need the JSON.parse of JSON.stringify here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: gh0stsh0t <rjperias0213@gmail.com>
|
Any updates on this one? This is ruining auto-deploy scripts at the moment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thank you !
|
This pull request has been mentioned on Strapi Community Forum. There might be relevant details there: https://forum.strapi.io/t/google-app-engine-readonly-vs-plugin-api-documentation-generation/468/7 |
|
I still get error in app engine |
|
nevermind, I generated the doc in localhost and push it to prod and it worked. |



Description of what you did:
for: strapi-plugin-documentation
Changed the object equality method to use lodash's is equal to avoid unordered properties returning false
Changed createDocObject's merge to concat arrays instead of overwriting them
fix #7399
fix #7509