Deprecate and remove findStateAtEvent method in StateService

Aperta
#254 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@debdutdeb ci sta già lavorando.

Dal 7/10/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Description

The findStateAtEvent method in StateService is marked with a TODO comment indicating it should be removed.

Location: packages/federation-sdk/src/services/state.service.ts (around line 897)

Current State

The method is marked with // TODO: remove this and currently wraps getStateAtEvent.

Suggested Migration Path

  1. Add a JSDoc @deprecated annotation to the method pointing users to getStateAtEvent
  2. Identify and migrate all callers to use getStateAtEvent directly
  3. Remove commented-out tests in state.service.spec.ts that reference this TODO
  4. Remove the method once all migrations are complete

Context

Lingua principale
TypeScript
Stelle
17
Fork
18
Merge medio
2h 11m
PR unite (30g)
2

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RocketChat/homeserver

Tutte le issue di RocketChat/homeserver

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.