Skip to content

Need a way to query for specific views based on content_url #456

Closed

Description

@mcoles

Currently the REST API requires you to provide the ID value or user-friendly name for a view if you wish to retrieve information about a specific one. However, I need a way to search for a view based on a content_url. This provides a human-readable method to reference a unique viz on a given site. Not having it means that I have to pull the full list of views from the entire site, then lookup the ID value based on the content_url. This takes at least thirty seconds, which isn't unfortunately isn't acceptable for my application.

Could we please add content_url to the list of filterable fields? I realize this is a request for the REST API, but I'm adding it here because I assume it will take work to be implemented in the TSC wrapper as well, and I'd love to keep my work in "pure" TSC as much as possible.

thank you,
Matt

Activity

  1. jacalata commented on Oct 26, 2021

    @jacalata
    Contributor

    This was added in the REST API version 3.6. We can add it to the next version of tsc, but you can also use the plain string as the field name for now:
    options.filter.add(TSC.Filter('contentUrl',
    TSC.RequestOptions.Operator.Equals,
    "Regional"))

  2. mcoles commented on Oct 26, 2021

    @mcoles
    Author

    Thank you for letting me know!

  3. added a commit that references this issue on Sep 22, 2023
  4. added and removed
    in-progressIssues that are in-progress of being fixed
    on Jan 9, 2025
  5. mcoles commented on Jan 9, 2025

    @mcoles
    Author

    Thank you, @jacalata! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions