Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-10-19 15:57:54 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-19 15:57:54 +0300
commit419c53ec62de6e97a517abd5fdd4cbde3a942a34 (patch)
tree1f43a548b46bca8a5fb8fe0c31cef1883d49c5b6 /doc/user/profile/achievements.md
parent1da20d9135b3ad9e75e65b028bffc921aaf8deb7 (diff)
Add latest changes from gitlab-org/gitlab@16-5-stable-eev16.5.0-rc42
Diffstat (limited to 'doc/user/profile/achievements.md')
-rw-r--r--doc/user/profile/achievements.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/user/profile/achievements.md b/doc/user/profile/achievements.md
index 1b875e984a1..c208bd554bf 100644
--- a/doc/user/profile/achievements.md
+++ b/doc/user/profile/achievements.md
@@ -281,3 +281,24 @@ If you don't want to display achievements on your profile, you can opt out. To d
1. Select **Edit profile**.
1. In the **Main settings** section, clear the **Display achievements on your profile** checkbox.
1. Select **Update profile settings**.
+
+## Reorder achievements
+
+By default, achievements on your profile are displayed in ascending order by awarded date.
+
+To change the order of your achievements, call the [`userAchievementPrioritiesUpdate` GraphQL mutation](../../api/graphql/reference/index.md#mutationuserachievementprioritiesupdate)
+with an ordered list of all prioritized achievements.
+
+```graphql
+mutation {
+ userAchievementPrioritiesUpdate(input: {
+ userAchievementIds: ["gid://gitlab/Achievements::UserAchievement/<first user achievement id>", "gid://gitlab/Achievements::UserAchievement/<second user achievement id>"],
+ }) {
+ userAchievements {
+ id
+ priority
+ }
+ errors
+ }
+}
+```