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

Object data type change from beforeSave to afterSave hook trigger #9176

Closed
mkmandar123 opened this issue Jul 5, 2024 · 5 comments · Fixed by #9177
Closed

Object data type change from beforeSave to afterSave hook trigger #9176

mkmandar123 opened this issue Jul 5, 2024 · 5 comments · Fixed by #9177
Labels
state:duplicate Duplicate of already reported issue state:released Released as stable version state:released-beta Released as beta version type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@mkmandar123
Copy link
Contributor

mkmandar123 commented Jul 5, 2024

New Issue Checklist

Issue Description

Object field data type changes from json to array during beforeSave and afterSave hook triggers.

Steps to reproduce

#9177

Actual Outcome

data type of the field value is not same in beforeSave and afterSave hook. It changes from json object to array.

Expected Outcome

data type of the field value should remain same in beforeSave and afterSave hook.

Environment

ParseServer: 7.1.0 (7.0.0 no issue observed)

Server

  • Parse Server version: 7.1.0
  • Operating system: Ubuntu 20.04
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Docker
Copy link

parse-github-assistant bot commented Jul 5, 2024

Thanks for opening this issue!

  • 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

@mtrezza mtrezza added type:bug Impaired feature or lacking behavior that is likely assumed state:duplicate Duplicate of already reported issue labels Jul 5, 2024
@mtrezza
Copy link
Member

mtrezza commented Jul 5, 2024

I believe this is a duplicate of parse-community/Parse-SDK-JS#2198?

@mtrezza
Copy link
Member

mtrezza commented Jul 8, 2024

Test added in #9177
Fixed via #9180
Related tests in #9179

@mtrezza mtrezza changed the title Object data type change from beforeSave to afterSave hook trigger. Object data type change from beforeSave to afterSave hook trigger Jul 8, 2024
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 7.2.0-beta.1

@parseplatformorg parseplatformorg added the state:released-beta Released as beta version label Jul 9, 2024
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 7.2.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:duplicate Duplicate of already reported issue state:released Released as stable version state:released-beta Released as beta version type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
3 participants