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

feat: Change default value of Parse Server option encodeParseObjectInCloudFunction to true #9527

Merged
merged 7 commits into from
Jan 12, 2025

Conversation

dblythy
Copy link
Member

@dblythy dblythy commented Jan 10, 2025

Pull Request

Issue

Closes: FILL_THIS_OUT

Approach

Tasks

  • Add tests
  • Add changes to documentation (guides, repository pages, code comments)
  • Add security check
  • Add new Parse Error codes to Parse JS SDK

Copy link

parse-github-assistant bot commented Jan 10, 2025

Thanks for opening this pull request!

  • ❌ Please fill out all fields with a placeholder FILL_THIS_OUT, otherwise your pull request will be closed. If a field does not apply to the pull request, fill in n/a.

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.51%. Comparing base (7f66629) to head (fbdbc6f).
Report is 3 commits behind head on alpha.

Additional details and impacted files
@@           Coverage Diff           @@
##            alpha    #9527   +/-   ##
=======================================
  Coverage   93.51%   93.51%           
=======================================
  Files         186      186           
  Lines       14807    14807           
=======================================
  Hits        13847    13847           
  Misses        960      960           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mtrezza mtrezza mentioned this pull request Jan 11, 2025
21 tasks
Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

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

This looks odd. We eventually want to remove the option, but the deprecation message reads more like we're only planning to change the default value. So we cannot say that the status of the deprecation is "removed" if we just change the default value. I believe the default value should have been changed in PS7, but it wasn't, because then the order would have been:

  • add deprecation in PS6 --> done
  • change default value in PS7 --> not done
  • remove option in PS8

We can either remove the option now or only change the default value now, correct the deprecation message and remove the option in PS9. Removing the option in PS8 would not violate our deprecation policy requirement to notify for the duration of at least 1 major release, but it's little code to maintain and due to the confusing deprecation message I'd say let's keep it for now and remove in PS9.

DEPRECATIONS.md Outdated Show resolved Hide resolved
DEPRECATIONS.md Outdated Show resolved Hide resolved
Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

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

We still need a deprecation warning logged if the option is set to false, with a message that we'll remove the option in a future version. Could you please add that?

DEPRECATIONS.md Outdated Show resolved Hide resolved
@mtrezza mtrezza changed the title change default value of encodeParseObjectInCloudFunction feat: Change default value of Parse Server option to encodeParseObjectInCloudFunction: true Jan 12, 2025
@mtrezza mtrezza added the state:breaking Breaking change requires major version increment and `BREAKING CHANGE` commit message label Jan 12, 2025
@mtrezza
Copy link
Member

mtrezza commented Jan 12, 2025

BREAKING CHANGE: The default value of Parse Server option encodeParseObjectInCloudFunction changes to true; the option has been deprecated and will be removed in a future version.

@mtrezza mtrezza changed the title feat: Change default value of Parse Server option to encodeParseObjectInCloudFunction: true feat: Change default value of Parse Server option encodeParseObjectInCloudFunction to true Jan 12, 2025
@mtrezza mtrezza merged commit 5c5ad69 into parse-community:alpha Jan 12, 2025
25 of 27 checks passed
parseplatformorg pushed a commit that referenced this pull request Jan 12, 2025
# [8.0.0-alpha.5](8.0.0-alpha.4...8.0.0-alpha.5) (2025-01-12)

### Features

* Change default value of Parse Server option `encodeParseObjectInCloudFunction` to `true` ([#9527](#9527)) ([5c5ad69](5c5ad69))

### BREAKING CHANGES

* The default value of Parse Server option `encodeParseObjectInCloudFunction` changes to `true`; the option has been deprecated and will be removed in a future version. ([5c5ad69](5c5ad69))
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 8.0.0-alpha.5

@parseplatformorg parseplatformorg added the state:released-alpha Released as alpha version label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:breaking Breaking change requires major version increment and `BREAKING CHANGE` commit message state:released-alpha Released as alpha version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants