From a1cefb4f7d19c881d803ab7df14ac06259a99379 Mon Sep 17 00:00:00 2001 From: Flora Thiebaut Date: Tue, 28 Nov 2023 09:54:31 +0100 Subject: [PATCH] feat: let users pin projects to the dashboard (#3338) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #3325. ## User-Facing Changes **🌟 New Features** - 📌️ **UI**: Users can now pin projects to the dashboard, up to a maximum of 5 projects ([#2898](https://github.com/SwissDataScienceCenter/renku-ui/pull/2898)). ## Internal Changes **✨ Improvements** - **Data services**: New API endpoints to store and retrieve user preferences have been added to support the projects pins ([#85](https://github.com/SwissDataScienceCenter/renku-data-services/pull/85)). Individual components ~~~~~~~~~~~~~~~~~~~~~ - [`renku-ui 3.16.0`](https://github.com/SwissDataScienceCenter/renku-ui/releases/tag/3.16.0) - [`renku-data-services 0.3.0`](https://github.com/SwissDataScienceCenter/renku-data-services/releases/tag/v0.3.0) --------- Co-authored-by: Flora Thiebaut Co-authored-by: Laura --- CHANGELOG.rst | 36 +++++++++++++++++++ .../templates/data-service/deployment.yaml | 6 ++-- .../ui/ui-client-deployment-template.yaml | 2 ++ helm-chart/renku/values.yaml | 14 ++++---- 4 files changed, 50 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 50f121e556..9603ed027c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,5 +1,41 @@ .. _changelog: +0.44.0 +------ + +Renku ``0.44.0`` introduces pinning projects to the dashboard in RenkuLab. + +User-Facing Changes +~~~~~~~~~~~~~~~~~~~ + +**🌟 New Features** + +- 📌️ **UI**: Users can now pin projects to the dashboard, up to a maximum of + 5 projects (`#2898 `_). + +**🐞 Bug Fixes** + +- **UI**: Correctly update progress of project indexing (`#2833 `_). +- **UI**: Change icons in the Nav bar to use Bootstrap icons (`#2882 `_). +- **UI**: Fixed bug that caused Dashboard to reload frequently by handling errors from the ``getSessions`` query in the Dashboard (`#2903 `_). +- **UI**: Adjust dropdown menus with anchors nested in buttons (`#2907 `_). +- **UI**: Update the workflows documentation link (`#2917 `_). +- **UI**: Add whitespace after author name in session commit details (`#2921 `_). + +Internal Changes +~~~~~~~~~~~~~~~~ + +**✨ Improvements** + +- **Data services**: New API endpoints to store and retrieve user + preferences have been added to support the projects pins (`#85 `_). + +Individual components +~~~~~~~~~~~~~~~~~~~~~ + +- `renku-ui 3.16.0 `_ +- `renku-data-services 0.3.0 `_ + 0.43.0 ------ diff --git a/helm-chart/renku/templates/data-service/deployment.yaml b/helm-chart/renku/templates/data-service/deployment.yaml index e5062dca76..edfd12883c 100644 --- a/helm-chart/renku/templates/data-service/deployment.yaml +++ b/helm-chart/renku/templates/data-service/deployment.yaml @@ -53,7 +53,7 @@ spec: name: {{ .Values.global.db.common.passwordSecretName }} key: password - name: KEYCLOAK_URL - value: {{ (printf "%s://%s/auth/" (include "renku.http" .) .Values.global.renku.domain) | quote}} + value: {{ (printf "%s://%s/auth/" (include "renku.http" .) .Values.global.renku.domain) | quote }} - name: KEYCLOAK_TOKEN_SIGNATURE_ALGS value: "RS256" - name: SERVER_DEFAULTS @@ -63,7 +63,9 @@ spec: - name: K8S_NAMESPACE value: {{ .Release.Namespace | quote }} - name: GITLAB_URL - value: {{ .Values.global.gitlab.url | quote}} + value: {{ .Values.global.gitlab.url | quote }} + - name: MAX_PINNED_PROJECTS + value: {{ .Values.dataService.maxPinnedProjects | quote }} {{- include "certificates.env.python" $ | nindent 12 }} volumeMounts: - name: server-options diff --git a/helm-chart/renku/templates/ui/ui-client-deployment-template.yaml b/helm-chart/renku/templates/ui/ui-client-deployment-template.yaml index ecfa9e4f7a..0d554fc275 100644 --- a/helm-chart/renku/templates/ui/ui-client-deployment-template.yaml +++ b/helm-chart/renku/templates/ui/ui-client-deployment-template.yaml @@ -107,6 +107,8 @@ spec: value: {{ toJson .Values.ui.client.coreApiVersionConfig | quote }} - name: KEYCLOAK_REALM value: {{ include "renku.keycloak.realm" . | quote }} + - name: USER_PREFERENCES_MAX_PINNED_PROJECTS + value: {{ .Values.dataService.maxPinnedProjects | quote }} livenessProbe: httpGet: path: / diff --git a/helm-chart/renku/values.yaml b/helm-chart/renku/values.yaml index c8affabcf7..2c566126bf 100644 --- a/helm-chart/renku/values.yaml +++ b/helm-chart/renku/values.yaml @@ -619,7 +619,7 @@ ui: replicaCount: 1 image: repository: renku/renku-ui - tag: "3.15.1" + tag: "3.16.0" pullPolicy: IfNotPresent ## Optionally specify an array of imagePullSecrets. ## Secrets must be manually created in the namespace. @@ -780,7 +780,7 @@ ui: keepCookies: [] image: repository: renku/renku-ui-server - tag: "3.15.1" + tag: "3.16.0" pullPolicy: IfNotPresent imagePullSecrets: [] nameOverride: "" @@ -1280,14 +1280,14 @@ jena: - ReadWriteOnce size: 10Gi additionalEnvironmentVariables: - - name: JVM_ARGS - value: -Xmx2G -Xms2G + - name: JVM_ARGS + value: -Xmx2G -Xms2G compacting: - name: ADMIN_USER value: admin ## The 'Mon *-*-* 00:00:00' expression means the process will be run every Monday at 00:00:00. More details at https://github.com/eikek/calev - name: COMPACTING_SCHEDULE - value: 'Mon *-*-* 00:00:00' + value: "Mon *-*-* 00:00:00" resources: requests: cpu: 1000m @@ -1491,7 +1491,7 @@ initDb: dataService: image: repository: renku/renku-data-service - tag: "0.2.3" + tag: "0.3.0" pullPolicy: IfNotPresent service: type: ClusterIP @@ -1509,6 +1509,8 @@ dataService: nodeSelector: {} tolerations: [] affinity: {} + # This defines the maximum number of pinned projects in user preferences + maxPinnedProjects: 5 podSecurityContext: {} securityContext: runAsUser: 1000