Signal-K / Signal-K/utilities

🥏🐣 ↝ Reset `linked_anomalies`

Open
#1 0 comments 0 reactions 1 assignee View on GitHub

@Gizmotronn is already working on this.

Since Jul 20, 2025.

enhancement
Dominant language
Go
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Create a Golang script and GitHub Action that deletes all entries from the linked_anomalies table in Supabase every Sunday at 00:01 AEST (Saturday 14:01 UTC). This will help reset user discoveries at the start of each new gameplay week.

Acceptance Criteria

Go script uses DELETE /rest/v1/linked_anomalies via Supabase HTTP API

Authenticated using SUPABASE_SERVICE_ROLE_KEY as a GitHub secret

Action runs weekly on schedule (cron: '1 14 * * 6')

Logs successful or failed deletion with fmt.Println

Uses SUPABASE_URL and SUPABASE_SERVICE_ROLE_KEY from env

GitHub Action runs standalone and is included in .github/workflows/delete-linked-anomalies.yml

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.