add user readme#955
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a nullable readme field to User and exposes it via GraphQL so users can store markdown content that can be displayed on their profile (Resolves: #918).
Changes:
- Add
users.readme(text, nullable) via migration and schema dump update. - Expose
readmeonUserGraphQL type and allow updating it throughusersUpdate. - Add request/type specs and update GraphQL docs for the new field/argument.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| spec/requests/graphql/mutation/users/update_spec.rb | Adds request coverage for updating readme and auditing. |
| spec/graphql/types/user_type_spec.rb | Ensures readme is present on the User GraphQL type. |
| docs/graphql/object/user.md | Documents User.readme. |
| docs/graphql/mutation/usersupdate.md | Documents usersUpdate(readme:) argument. |
| db/structure.sql | Reflects schema changes (includes users.readme, but also includes unrelated schema additions). |
| db/schema_migrations/20260509183408 | Adds schema migration checksum entry for the migration. |
| db/migrate/20260509183408_add_readme_to_user.rb | Adds the readme column to users. |
| app/graphql/types/user_type.rb | Adds readme field to GraphQL User type. |
| app/graphql/mutations/users/update.rb | Adds readme argument to usersUpdate. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
GitLab Pipeline ActionGeneral informationLink to pipeline: https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2513458618 Status: Passed Job summariesrspec: [cloud]Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/14295098555/artifacts/tmp/coverage/index.html rspec: [ee]Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/14295098554/artifacts/tmp/coverage/index.html rspec: [ce]Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/14295098553/artifacts/tmp/coverage/index.html docs:previewDocumentation preview available at https://code0-tech.gitlab.io/-/development/telescopium/-/jobs/14295110789/artifacts/out/index.html rubocop773 files inspected, no offenses detected |
Co-authored-by: Niklas van Schrick <mc.taucher2003@gmail.com> Signed-off-by: Raphael Götz <52959657+raphael-goetz@users.noreply.github.com>
Resolves: #918