Skip to content

Commit

Permalink
Merge pull request #1708 from serlo/minor-changes
Browse files Browse the repository at this point in the history
Update bucket for anonymous data and minor changes
  • Loading branch information
hugotiburtino authored Aug 5, 2024
2 parents 4742dae + 599bd95 commit 3c5384d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion docker-compose.kratos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ services:
ports:
- '4433:4433' # public
- '4434:4434' # admin
restart: unless-stopped
environment:
- LOG_LEVEL=trace
command: serve -c /etc/config/kratos/config.yml --dev --watch-courier
Expand Down
7 changes: 6 additions & 1 deletion packages/server/src/schema/uuid/user/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,12 @@ export const resolvers: Resolvers = {

return F.pipe(
await getSpreadsheetValues({ spreadsheetId, range }),
E.mapLeft(addContext({ location: 'motivationSpreadsheet' })),
E.mapLeft(
addContext({
location: 'motivationSpreadsheet',
errorContext: { userId: user.id },
}),
),
E.getOrElse(consumeErrorEvent([] as string[][])),
A.findLast(
(row) =>
Expand Down
2 changes: 1 addition & 1 deletion scripts/mysql/import-anonymous-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

tmp_dir="/tmp"

latest_dump=$(gsutil ls -l gs://anonymous-data | grep dump | sort -rk 2 | head -n 1 | awk '{ print $3 }' | tr -d '\n')
latest_dump=$(gsutil ls -l gs://anonymous-dump | grep dump | sort -rk 2 | head -n 1 | awk '{ print $3 }' | tr -d '\n')

if [ -z "$latest_dump" ]; then
echo "❌ Could not fetch latest dump, check your gsutil setup"
Expand Down

0 comments on commit 3c5384d

Please sign in to comment.