Skip to content

feat(tracker): update operators' version if they already exist#1070

Merged
JuArce merged 6 commits into998-refactortracker-rewrite-operator_tracker-in-elixirfrom
tracker-update-operators
Sep 25, 2024
Merged

feat(tracker): update operators' version if they already exist#1070
JuArce merged 6 commits into998-refactortracker-rewrite-operator_tracker-in-elixirfrom
tracker-update-operators

Conversation

@avilagaston9
Copy link
Copy Markdown
Contributor

@avilagaston9 avilagaston9 commented Sep 24, 2024

Motivation

We are currently creating an entry for every POST /api/operators, but we should update any existing ones.

Description

  • Sets address as the primary key.
  • Changes GET operator/:id to GET operator/:address since we now index operators by address.
  • Checks whether an operator is already in the registry and updates its version if that is the case, or creates a new one if it is not.
  • Enables the /versions endpoint which directly mirrors the operations defined for /api/operators for backwards compatibility reasons.

@avilagaston9 avilagaston9 changed the title feat: update operators' version if they already exist feat(tracker): update operators' version if they already exist Sep 24, 2024
@avilagaston9 avilagaston9 marked this pull request as draft September 24, 2024 21:20
@avilagaston9 avilagaston9 marked this pull request as ready for review September 24, 2024 23:53
@JuArce JuArce merged commit 9561780 into 998-refactortracker-rewrite-operator_tracker-in-elixir Sep 25, 2024
@JuArce JuArce deleted the tracker-update-operators branch September 25, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants