Skip to content

104 migrate fink broker to dataservice#112

Open
phycodurus wants to merge 14 commits intodevfrom
104-migrate-fink-broker-to-dataservice
Open

104 migrate fink broker to dataservice#112
phycodurus wants to merge 14 commits intodevfrom
104-migrate-fink-broker-to-dataservice

Conversation

@phycodurus
Copy link
Member

@phycodurus phycodurus commented Feb 17, 2026

Adds FinkDataService class; deprecates FinkBroker

My tests are passing with poetry run python tom_fink/tests/run_tests.py and a local, but un altered tom_base (dev).

In this case, make the Fink broker appear in TOMToolkit's list
of DataServices, when tom_fink is INSTALLED.

TOMToolkit will look for certain methods in the AppConfig of a
TOM's INSTALLED_APPS to ask the App how to integrate it into the TOM.
This makes apps more self contained and reduces app-specific
configuration data in settings.py.
This is part of the "DataServices refactor" of the Fink broker
interface.
@phycodurus phycodurus linked an issue Feb 17, 2026 that may be closed by this pull request
7 tasks
- minimal form changes: remove GenericQueryForm.common_layout
  (it is replaced by layout in the BaseQueryForm)
- the FinkBroker has been removed
  - FinkBroker.to_generic_alert and FinkBroker.to_target functionality
    condensed into create_target_from_query
  - FinkerBroker.fetch_alerts is now FinkDataService._fetch_alerts
    and FinkDataServic.query_service just calls _fetch_alerts.
- minimal form changes: remove GenericQueryForm.common_layout
  (it is replaced by layout in the BaseQueryForm)
- the FinkBroker has been removed
  - FinkBroker.to_generic_alert and FinkBroker.to_target functionality
    condensed into create_target_from_query
  - FinkerBroker.fetch_alerts is now FinkDataService._fetch_alerts
    and FinkDataServic.query_service just calls _fetch_alerts.
condense query results in to structure suitable for presenting
in the selectable "create target" table.
The target table row dictionary was updated to be appropriate for
one-target-one-row. These changes follow from that and use the
appropriate dict keys to get the data to create the target.
@phycodurus phycodurus requested a review from jchate6 February 23, 2026 21:26
@phycodurus phycodurus marked this pull request as ready for review February 23, 2026 21:26
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.

Migrate Fink Broker to DataService

1 participant