Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove orgs with 0 datasets from the org page #4740

Open
2 tasks
tdlowden opened this issue May 8, 2024 · 1 comment
Open
2 tasks

Remove orgs with 0 datasets from the org page #4740

tdlowden opened this issue May 8, 2024 · 1 comment

Comments

@tdlowden
Copy link
Member

tdlowden commented May 8, 2024

User Story

In order to minimize visual clutter and have accurate info, datagov users wants organizations with 0 datasets removed from the organization list.

Acceptance Criteria

  • GIVEN catalog.data.gov lists organizations so users can find datasets
    WHEN an organization no longer has datasets on the catalog
    THEN the card for the organization should disappear from the list
    AND the org should not be counted in the total org count

Background

There are currently 20 orgs with 0 datasets listed

Image

Security Considerations (required)

None

Sketch

  • Create logic that removes organizations from the list if they have 0 datasets at current time
@jbrown-xentity
Copy link
Contributor

I found an ability to get this programatically, but the total organization count doesn't seem to match the count on the UI, which gives me pause...
https://catalog.data.gov/api/action/organization_list?sort=package_count&include_dataset_count=true&all_fields=True&limit=25&offset=105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📔 Product Backlog
Development

No branches or pull requests

2 participants