Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reset/regenerate memories #16548

Merged
merged 1 commit into from
Mar 4, 2025
Merged

fix: reset/regenerate memories #16548

merged 1 commit into from
Mar 4, 2025

Conversation

jrasm91
Copy link
Contributor

@jrasm91 jrasm91 commented Mar 3, 2025

  • Delete all memories
  • Reset memory "last run" tracker
  • Automatically queue memory generation for impacted users

Copy link
Contributor

@zackpollard zackpollard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

40 😤

name = 'ResetMemories1741027685381';

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`DELETE FROM "memories"`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need cascade option here? When I run the truncate commands, it needs that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. I tested this and didn't need it so I don't think so

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete should automatically cascade where as truncate won't without explicitly saying cascade

@jrasm91 jrasm91 merged commit 1356468 into main Mar 4, 2025
46 checks passed
@jrasm91 jrasm91 deleted the fix/reset-memories branch March 4, 2025 04:48
knechtandreas added a commit to knechtandreas/immich that referenced this pull request Mar 4, 2025
…n-grid

* main: (32 commits)
  docs: clean up environment variables formatting & grammar (immich-app#16555)
  fix: reset/regenerate memories (immich-app#16548)
  fix(deps): update machine-learning (immich-app#16560)
  chore(deps): update node (immich-app#16538)
  refactor: migration tag repository to kysely (immich-app#16398)
  feat: qr code for new shared link (immich-app#16543)
  chore(deps): update github-actions (immich-app#16539)
  fix(docs): info on preloading ML models (immich-app#16452)
  docs: better facial recognition cluster guide (immich-app#14911)
  fix(web): delete action closes asset viewer in asset view (immich-app#15469)
  feat(cli): watch paths for auto uploading daemon (immich-app#14923)
  ci: weblate checks should always run, should skip on en.json (immich-app#16544)
  feat(web): Video memories on web (immich-app#16500)
  fix(deps): update typescript-projects (immich-app#16540)
  chore(mobile): fix store.put type def (immich-app#16517)
  refactor(mobile): move timeline methods to timeline repo (immich-app#16526)
  chore(deps): update dependency eslint-plugin-svelte to v3 (immich-app#16532)
  refactor(server): link live photos as part of metadata extraction instead of queueing job (immich-app#16390)
  chore(deps): update dependency globals to v16 (immich-app#16534)
  ci: don't check weblate lock on chore/translations and add success job (immich-app#16533)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants