GSA / notifications-admin

The UI of Notify.gov
https://notify.gov
Other
11 stars 2 forks source link

API Research - Jobs and Templates Tables #1535

Open em-herrick opened 5 months ago

em-herrick commented 5 months ago

Acceptance Criteria

We're looking for a back-end engineer to help the front-end with a bit of stock-taking research. For the following feature:

We'll be reviewing these together to determine our next steps for implementation work.

Implementation Sketch

When researching the API and documenting your findings, please keep these things in mind:

Feature 2: Job activity:

This feature is similar to the batch jobs that we currently have on display on our current dashboard. Columns: File name, Status, Sender, Service name.

image

Sub feature: Search

I do not believe we currently have an endpoint for search on jobs within service name, all services, or user.

Possible inputs: Users can search by any of the column fields.

image

Sub feature: Pagination

I do not believe we currently have an endpoint for pagination on jobs within service name, all services, or user.

image

Possible endpoint: curl --location --globoff '{{base}}/service/{{service_id}}/job'

Feature 3: Template activity:

This feature pertains to templates. Columns include: Template name, the folder where the templates are located—if they exist—or default to the parent folder, last used, created by, and the count of times the template has been used.

Follow up question: Do we want to count the number of times a template has been used within a specific date range or throughout all time?

image

Possible endpoint: {{base}}/service/{{service_id}}/notifications/templates_usage/monthly?year={{year}} {{base}}/service/{{service_id}}/template-statistics?whole_days=7

Sub feature: Pagination

I do not believe we currently have an endpoint for pagination on jobs within service name, all services, or user.

image
ccostino commented 4 months ago

@A-Shumway42, we have this one assigned to you but we know a couple of other things are still in flight, and we're shifting this to the backlog as the data visualizations are a higher priority at the moment. All said, hold tight for now and we'll revisit this soon! 🙂