Greater field validation to simplify the work of indexers and approvers

14 views
Skip to first unread message

Simone Nardi

unread,
Aug 2, 2026, 1:05:43 AM (8 days ago) Aug 2
to gcd-tech
Hello,

The other day, while editing the Color field of a series, I used square brackets `[]` instead of parentheses `()`, confusing them with array syntax.

The mistake was trivial, but I think it highlights a more general need: all fields should have validation checks at commit time (as already happens for some fields, for example with the current red error messages).

I've been pleased to see that much larger improvements are currently being developed than the one I'm suggesting. With that in mind, I was wondering whether it would be possible to extend this kind of validation to all fields, so that simple formatting and syntax errors can be caught before a commit, allowing approvers to focus on the correctness and semantics of the submitted data.

Thank you.
Simone Nardi

Adam Hernandez

unread,
Aug 2, 2026, 1:08:37 AM (8 days ago) Aug 2
to gcd-tech
For clarification, it sounds like you are looking for server side validation, not inline validation. Is that correct?

Adam

Simone Nardi

unread,
Aug 2, 2026, 1:33:52 AM (8 days ago) Aug 2
to gcd-tech
Yes, exactly. I mean server-side/back-end validation during the commit process, similar to the validation that already exists for some fields
  
Simone

Jochen G.

unread,
Aug 2, 2026, 4:42:57 AM (8 days ago) Aug 2
to gcd-...@googlegroups.com
To clarify our used terminology, data entry validation tacks place in
the forms, when forms are saved.

Server side validation on commit (changeset is approved) would be too
late for this.

For colors, valid use cases exist for both [] and (), so just their
existence cannot be checked.

Jochen

Am 02.08.26 um 07:33 schrieb Simone Nardi:
> --
> You received this message because you are subscribed to the Google
> Groups "gcd-tech" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to gcd-tech+u...@googlegroups.com <mailto:gcd-
> tech+uns...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/gcd-
> tech/8f8f8728-c2c6-4bc8-9c63-59246872d8b8n%40googlegroups.com <https://
> groups.google.com/d/msgid/gcd-tech/8f8f8728-
> c2c6-4bc8-9c63-59246872d8b8n%40googlegroups.com?
> utm_medium=email&utm_source=footer>.

Simone Nardi

unread,
Aug 2, 2026, 5:26:16 AM (8 days ago) Aug 2
to gcd-tech
Hi Jochen,
Thanks for the clarification.

My color example was just one example. My point was more general: client-side validation can improve the user experience, but the authoritative validation should be on the Django side. Wherever a field has a well-defined syntax, additional validators (regex where appropriate, or custom validators) could catch malformed input before it is stored.

The goal is not to reject valid cases such as [] versus (), but to encode the existing syntax rules for fields where they are already defined, reducing common data-entry mistakes and making life easier for both indexers and approvers.

Would that be feasible?
  
Simone

Jochen G.

unread,
Aug 2, 2026, 6:03:15 AM (8 days ago) Aug 2
to gcd-...@googlegroups.com
On very save of a form there are, for some forms quite extensive,
validations on the Django side (see any file in apps/oi/forms/). If one
cannot save a form and gets red errors, this comes from the server, not
the client.

There might be more checks possible, but for that concrete suggestions
are needed.

Jochen

Am 02.08.26 um 11:26 schrieb Simone Nardi:
> gcd- <https://groups.google.com/d/msgid/gcd->
> > tech/8f8f8728-c2c6-4bc8-9c63-59246872d8b8n%40googlegroups.com
> <http://40googlegroups.com> <https://
> > groups.google.com/d/msgid/gcd-tech/8f8f8728- <http://
> groups.google.com/d/msgid/gcd-tech/8f8f8728->
> > c2c6-4bc8-9c63-59246872d8b8n%40googlegroups.com
> <http://40googlegroups.com>?
> > utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "gcd-tech" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to gcd-tech+u...@googlegroups.com <mailto:gcd-
> tech+uns...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/gcd-
> tech/c4f53e0b-de0f-4291-af29-6057919bdef3n%40googlegroups.com <https://
> groups.google.com/d/msgid/gcd-tech/c4f53e0b-de0f-4291-
> af29-6057919bdef3n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages