You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Approve a source through the source identification API.
If submitted as approved:
The source is marked as approved and the user's ID is stored and associated with the url in a approving_user_url table
If submitted as not relevant, aka rejected:
The source is confirmed as rejected in the Source Collector Database
After a source is submitted through this endpoint, whether as approved or rejected, it can no longer be annotated by either the auto-labeler or by users, nor can it be submitted again.
Endpoint parameters
All of the below will be required:
url_id: The source collector URL id.
record_type: The record type to be given in the /data-sources endpoint
agency_id: The agency id to associate with the data type. Single agency ID assumed.
Internal logic
This will require the addition of a new approved enum value for the url_status enum
This will require the addition of a new approving_user_url table
If an agency is not confirmed, it will need to be confirmed
Metadata values (record_type, relevant) will need to be set as confirmed.
Additional Notes
This will not submit a source right away to Data Sources API. That task will be handled by #152
The text was updated successfully, but these errors were encountered:
Approve a source through the source identification API.
If submitted as approved:
approved
and the user's ID is stored and associated with the url in aapproving_user_url
tableIf submitted as
not relevant
, aka rejected:After a source is submitted through this endpoint, whether as approved or rejected, it can no longer be annotated by either the
auto-labeler
or by users, nor can it be submitted again.Endpoint parameters
All of the below will be required:
url_id
: The source collector URL id.record_type
: The record type to be given in the/data-sources
endpointagency_id
: The agency id to associate with the data type. Single agency ID assumed.Internal logic
approved
enum value for theurl_status
enumapproving_user_url
tablerecord_type
,relevant
) will need to be set as confirmed.Additional Notes
This will not submit a source right away to Data Sources API. That task will be handled by #152
The text was updated successfully, but these errors were encountered: