Skip to content

Relation Column Save Fails If the Parent has required fields #1936

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

Closed
4 tasks done
fn-faisal opened this issue Dec 1, 2021 · 1 comment · Fixed by #1937
Closed
4 tasks done

Relation Column Save Fails If the Parent has required fields #1936

fn-faisal opened this issue Dec 1, 2021 · 1 comment · Fixed by #1937
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@fn-faisal
Copy link
Member

New Issue Checklist

Issue Description

If a Class has required columns along with relation columns. Upon clicking on the relation column for a row, as we're taken to the relation class, as the add row button is clicked to add row, after we enter the data and hit save button, we get the error Please enter all the required fields.

Steps to reproduce

Create two classes called TestClass, TestRelation. Add a required column to TestClass along with a relation column that points to TestRelation class. Add a new row in the TestClass with the required field and click save and then click on View Relation. In the Relation Class (TestRelation) click new row button and enter the data then click save. You should see an error Please enter all required fields

Actual Outcome

The relation object save fails if there are required columns in the Parent class with a message Please enter all required fields

Expected Outcome

The relation object should be saved without any error

Environment

Dashboard

  • Parse Dashboard version: 3.2.1
  • Browser (Safari, Chrome, Firefox, Edge, etc.): Chrome
  • Browser version: 96.0.4664.55

Server

  • Parse Server version: 4.2.0
  • Operating system: MacOS Catilina
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Localhost

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 3.6
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): MongoDB Atlas
@parse-github-assistant
Copy link

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 the type:bug Impaired feature or lacking behavior that is likely assumed label Dec 5, 2021
@mtrezza mtrezza linked a pull request Dec 5, 2021 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants