apache / apache/grails-core

using except to show id and dateCreated as per docs does not seem to work.

Open
#14,223 0 comments 0 reactions 0 assignees View on GitHub
relates-to: grails-fields
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

The fields documentation says this:

```
// Include id, lastUpdated, dateCreated

```

Firstly, this seems to be a typo. Should it be "[]"?

gives a compilation error.

does not show the id and dateCreated. Nor does this:

The only way i can find to show the id and dateCreated is to hard code every field in the "properties" parameter, which defeats the object.

I am guessing that this is either a bug, or perhaps the documentation is not correct?

Contributor guide

Open the contributing guide

Research direction

Start with the fields documentation examples for the f:table and f:display tags, then locate the implementation or tests for their except and properties parameters. Reproduce the compilation error for except="[]]" and compare the output for except="[]" and except="". Done means the documented syntax works as described, or the documentation clearly records the supported behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
backend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.