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

Delete Multiples fields in SchemaController cause unexpected behavior #3734

Closed
paulovitin opened this issue Apr 19, 2017 · 1 comment
Closed

Comments

@paulovitin
Copy link
Contributor

Delete Multiples fields in SchemaController cause unexpected behavior

When you try delete more than one field using method SchemaController.updateClass, the method make more than one request to method SchemaController.deleteField asynchronously.

This method validate somethings and load the current Schema, and make a call to Storage Adapter deleteFields update the row in _Schema and perform the Drop Columns in the table.

The problem is the schema loaded dont have the modification requested by the others calls to deleteFields. The columns is dropped, but the schema in _Schema table has the other fields which you request to remove.

Steps to reproduce

  • Add two fields to _User Schema
  • Then use SchemaController.updateClass to remove this fields

Expected Results

  • Drop Columns in the table
  • Remove Fields in the _Schema too

Actual Outcome

  • Drop Columns in the table
  • One of the two fields remain in the schema

Environment Setup

  • Server

    • parse-server version (Be specific! Don't say 'latest'.) : 2.3.8
    • Operating System: macOS
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): localhost
  • Database

    • PostgreSQL version: 9.6
    • Localhost or remote server? localhost
@dplewis
Copy link
Member

dplewis commented Mar 15, 2018

Closing via #3735

@dplewis dplewis closed this as completed Mar 15, 2018
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

No branches or pull requests

2 participants