Skip to content

Conversation

@RahulLanjewar93
Copy link
Collaborator

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

mtrezza and others added 30 commits January 11, 2025 18:42
…, `22.12.0` (parse-community#9521)

BREAKING CHANGE: This releases increases the required minimum Node versions to 18.20.4, 20.18.0, 22.12.0 and removes unofficial support for Node 19.
# [8.0.0-alpha.1](parse-community/parse-server@7.4.0-alpha.7...8.0.0-alpha.1) (2025-01-11)

### Features

* Increase required minimum Node versions to `18.20.4`, `20.18.0`, `22.12.0` ([parse-community#9521](parse-community#9521)) ([4e151cd](parse-community@4e151cd))

### BREAKING CHANGES

* This releases increases the required minimum Node versions to 18.20.4, 20.18.0, 22.12.0 and removes unofficial support for Node 19. ([4e151cd](4e151cd))
# [8.0.0-alpha.2](parse-community/parse-server@8.0.0-alpha.1...8.0.0-alpha.2) (2025-01-11)

### Bug Fixes

* Push adapter not loading on some versions of Node 22 ([parse-community#9524](parse-community#9524)) ([ff7f671](parse-community@ff7f671))
…`, `8.0.4` (parse-community#9531)

BREAKING CHANGE: This releases increases the required minimum MongoDB versions to `6.0.19`, `7.0.16`, `8.0.4` and removes support for MongoDB `4`, `5`.
# [8.0.0-alpha.3](parse-community/parse-server@8.0.0-alpha.2...8.0.0-alpha.3) (2025-01-12)

### Features

* Increase required minimum MongoDB versions to `6.0.19`, `7.0.16`, `8.0.4` ([parse-community#9531](parse-community#9531)) ([871e508](parse-community@871e508))

### BREAKING CHANGES

* This releases increases the required minimum MongoDB versions to `6.0.19`, `7.0.16`, `8.0.4` and removes support for MongoDB `4`, `5`. ([871e508](871e508))
# [8.0.0-alpha.4](parse-community/parse-server@8.0.0-alpha.3...8.0.0-alpha.4) (2025-01-12)

### Features

* Deprecate `PublicAPIRouter` in favor of `PagesRouter` ([parse-community#9526](parse-community#9526)) ([7f66629](parse-community@7f66629))
…nCloudFunction` to `true` (parse-community#9527)

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.
# [8.0.0-alpha.5](parse-community/parse-server@8.0.0-alpha.4...8.0.0-alpha.5) (2025-01-12)

### Features

* Change default value of Parse Server option `encodeParseObjectInCloudFunction` to `true` ([parse-community#9527](parse-community#9527)) ([5c5ad69](parse-community@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))
….3` (parse-community#9538)

BREAKING CHANGE: This releases increases the required minimum versions to Postgres `15`, PostGIS `3.3` and removes support for Postgres `13`, `14`, PostGIS `3.1`, `3.2`.
# [8.0.0-alpha.6](parse-community/parse-server@8.0.0-alpha.5...8.0.0-alpha.6) (2025-01-12)

### Features

* Increase required minimum versions to Postgres `15`, PostGIS `3.3` ([parse-community#9538](parse-community#9538)) ([89c9b54](parse-community@89c9b54))

### BREAKING CHANGES

* This releases increases the required minimum versions to Postgres `15`, PostGIS `3.3` and removes support for Postgres `13`, `14`, PostGIS `3.1`, `3.2`. ([89c9b54](89c9b54))
mtrezza and others added 19 commits July 10, 2025 04:41
## [8.2.2](parse-community/parse-server@8.2.1...8.2.2) (2025-07-10)

### Bug Fixes

* Data schema exposed via GraphQL API public introspection (GHSA-48q3-prgv-gm4w) ([parse-community#9819](parse-community#9819)) ([c58b2eb](parse-community@c58b2eb))
## [8.2.3-alpha.1](parse-community/parse-server@8.2.2...8.2.3-alpha.1) (2025-07-13)

### Bug Fixes

* MongoDB aggregation pipeline with `$dateSubtract` from `$$NOW` returns no results ([parse-community#9822](parse-community#9822)) ([847a274](parse-community@847a274))
## [8.2.3](parse-community/parse-server@8.2.2...8.2.3) (2025-08-01)

### Bug Fixes

* MongoDB aggregation pipeline with `$dateSubtract` from `$$NOW` returns no results ([parse-community#9822](parse-community#9822)) ([847a274](parse-community@847a274))
## [8.2.4-alpha.1](parse-community/parse-server@8.2.3...8.2.4-alpha.1) (2025-08-02)

### Bug Fixes

* Security upgrade form-data from 4.0.3 to 4.0.4 ([parse-community#9829](parse-community#9829)) ([c2c593f](parse-community@c2c593f))
## [8.2.4](parse-community/parse-server@8.2.3...8.2.4) (2025-09-01)

### Bug Fixes

* Security upgrade form-data from 4.0.3 to 4.0.4 ([parse-community#9829](parse-community#9829)) ([c2c593f](parse-community@c2c593f))
@RahulLanjewar93 RahulLanjewar93 self-assigned this Sep 9, 2025
@RahulLanjewar93 RahulLanjewar93 changed the base branch from alpha to 7-vizmo September 9, 2025 09:11
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @RahulLanjewar93, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances Parse Server's schema migration capabilities by introducing a new configuration setting. This change provides greater flexibility for developers who manage database indexes manually, preventing the server from automatically removing indexes that are intentionally kept outside of the defined schema.

Highlights

  • New Configuration Option: Introduced a new boolean configuration option, dropUnknownIndexes, within Parse Server's schema options.
  • Control Over Index Deletion: This new option allows users to control whether Parse Server automatically drops database indexes that are not explicitly defined in the application's schema.
  • Default Behavior Maintained: The default value for dropUnknownIndexes is true, meaning the existing behavior of dropping unknown indexes remains unchanged unless explicitly set to false.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new dropUnknownIndexes option to control schema migrations. While the feature is useful, the current implementation has a few issues. The default value for the new option is not handled correctly, which could break existing behavior. There's also a bug in how modified indexes are handled when dropUnknownIndexes is false. Additionally, the tests for this new feature have incorrect descriptions, and one of them is broken. I've provided detailed feedback and suggestions to address these points.

});

it('should delete removed indexes', async () => {
it('should delete removed indexes when dropUnknownIndexes is set to false', async () => {

Choose a reason for hiding this comment

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

high

The test description is incorrect. To delete indexes, dropUnknownIndexes should be true.

More importantly, this test will fail because it relies on the default value for dropUnknownIndexes. The default is not being set in Config.js, so it will be undefined (a falsy value). As a result, indexes will not be dropped, and the assertion expect(schema.indexes).toBeUndefined() will fail.

Please update the test to explicitly set dropUnknownIndexes: true in the schemas object and correct the description to make the test robust and clear.

Suggested change
it('should delete removed indexes when dropUnknownIndexes is set to false', async () => {
it('should delete removed indexes when dropUnknownIndexes is true', async () => {

expect(schema.indexes).toBeUndefined();
});

it('should not delete removed indexes when dropUnknownIndexes is set to true', async () => {

Choose a reason for hiding this comment

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

medium

The test description is incorrect. The implementation correctly tests the case where dropUnknownIndexes is false to prevent deleting indexes. The description should be updated to reflect this.

Suggested change
it('should not delete removed indexes when dropUnknownIndexes is set to true', async () => {
it('should not delete removed indexes when dropUnknownIndexes is set to false', async () => {

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.

10 participants