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

Resource Format Auto Detect #1369

Closed
wants to merge 7 commits into from
Closed

Commits on Apr 18, 2023

  1. feat(schemas): use core guess_format for resource format schema;

    - Made resource format field read only.
    - Used core `if_empty_guess_format` validator for the field.
    - Modified choices into `openness_scores` for the Openness Score mappings on the format values.
    JVickery-TBS committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    e03e8a2 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2023

  1. feat(schemas): select2 template, custom action method, and custom val…

    …idator for resource format;
    
    - Added select2 scheming form snippet for specific display in our theme.
    - Added override action method for `format_autocomplete`.
    - Added custom validator to do format replacements based on `if_empty_guess_format` and `replaces`.
    JVickery-TBS committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    d75d4f5 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2023

  1. feat(schemas): cont. resource format select2;

    - Added labels and replaces checks for select2 callback.
    - Added TODOs.
    JVickery-TBS committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    4d7a1c7 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2023

  1. Merge branch 'master' into feature/auto-resource-formats

    # Conflicts:
    #	ckanext/canada/plugins.py
    #	ckanext/canada/validators.py
    # RESOLVED.
    JVickery-TBS committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    483a9c9 View commit details
    Browse the repository at this point in the history
  2. feat(dev): resource mimetype guessing validator;

    - Validator for guessing the resource format.
    JVickery-TBS committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    983194d View commit details
    Browse the repository at this point in the history
  3. feat(dev): frontend resource format;

    - Started frontend code for resource format.
    - Changed autocomplete to basic selectable select2 element.
    - Moved some code to reusable helper.
    - Added API util endpoint.
    JVickery-TBS committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    84b82c6 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2023

  1. feat(tests): new tests;

    - Test for auto resource format.
    JVickery-TBS committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    a72f1e7 View commit details
    Browse the repository at this point in the history