Skip to content

Conversation

@julwrites
Copy link
Owner

  • Change Id field tag from datastore:"-" to datastore:",noindex"
  • Add explanatory comments about Id field usage
  • Fixes error: "Failed to get user: datastore: cannot load field "Id" into a "utils.User": no such struct field"

The error occurred because existing datastore entities have an "Id" field stored from previous versions, but the current User struct had datastore:"-" tag which tells datastore to ignore the field. Changing to ",noindex" allows the field to be loaded while still not indexing it (redundant with key).

🤖 Generated with Claude Code

- Change Id field tag from `datastore:"-"` to `datastore:",noindex"`
- Add explanatory comments about Id field usage
- Fixes error: "Failed to get user: datastore: cannot load field "Id" into a "utils.User": no such struct field"

The error occurred because existing datastore entities have an "Id" field
stored from previous versions, but the current User struct had `datastore:"-"`
tag which tells datastore to ignore the field. Changing to `",noindex"` allows
the field to be loaded while still not indexing it (redundant with key).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@julwrites julwrites merged commit f99c767 into staging Dec 13, 2025
1 check passed
@julwrites julwrites deleted the fix/user-datastore-id-field branch December 13, 2025 08:02
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

Successfully merging this pull request may close these issues.

2 participants