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

Reject form with unknown columns in entities sheet #669

Closed
lognaturel opened this issue Nov 28, 2023 · 1 comment · Fixed by #671
Closed

Reject form with unknown columns in entities sheet #669

lognaturel opened this issue Nov 28, 2023 · 1 comment · Fixed by #671
Labels
Milestone

Comments

@lognaturel
Copy link
Contributor

Currently, unknown columns are ignored on all sheets. This is generally convenient for the survey sheet because it makes it straightforward to add commentary or turn certain features off. In the case of the entities sheet (and maybe also the settings sheet), it feels like those patterns are less likely to be used.

Entity-related functionality is generally going to be added by defining new columns. For example, we recently introduced update_if. Because extra columns are ignored, using a form with update_if with an old version of pyxform does convert the form, it just ignores update_if. It would be more helpful if those forms were rejected instead. It would also be more inline with the versioning scheme for the entities spec and the fact that other consumers of the spec reject versions of the spec newer than they're aware of.

@ktuite
Copy link
Collaborator

ktuite commented Nov 28, 2023

Because this is about rejecting columns in the special sheets, I think it sounds nice.

It would also have helped that one time I wrote create_id instead of create_if and it said "that's not a column we recognize".

@lindsay-stevens lindsay-stevens added this to the Next milestone Nov 28, 2023
lindsay-stevens added a commit to lindsay-stevens/pyxform that referenced this issue Nov 28, 2023
- add tests for new error case(s) + happy path
- add copy of python 3.11 StrEnum which can reference members as str
- add enum with the expected entities column names
- update existing entities modules to use constants
lognaturel added a commit that referenced this issue Nov 29, 2023
#669: reject form with unknown columns in entities sheet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants