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

[Fixes #48] Feature: allow searching through filter parameter #50

Conversation

mwallschlaeger
Copy link
Contributor

Description

this PR brings the --filter argument for the list function of all geonodeobjects. This can be used via geonodectl on cmdline like:

geonodectl dataset list --filter title=test

or by calling the corresponding object class like:

from geonoderest import datasets
from geonoderest.apiconf import GeonodeApiConf

# load envvars from env
gn_conf = GeonodeApiConf.from_env_vars()

gn_dshandler = datasets.GeonodeDatasetsHandler(env=gn_conf)
filtered_results = gn_dshandler.list(filter={"title": "test"})

Type of Change

Please select the relevant option:

  • Bug fix
  • New feature
  • Documentation update
  • Refactoring
  • Release
  • Other (please describe)

Related Issue

If there is an existing issue related to this pull request, please reference it here.

closes #48

Checklist

Please ensure that your pull request meets the following requirements:

  • The pull request is limited to one type (docs, feature, bug fix, etc.)
  • The pull request is as small as possible. Consider opening multiple pull requests instead of one large one.
  • The feature or bug fix has been discussed and documented in an issue beforehand.

Additional Notes

Any additional information or context regarding the pull request can be provided here.

Thank you for creating this pull request

@mwallschlaeger mwallschlaeger added the feature new features label May 8, 2024
@mwallschlaeger mwallschlaeger added this to the v0.2.0 milestone May 8, 2024
@mwallschlaeger mwallschlaeger self-assigned this May 8, 2024
@mwallschlaeger mwallschlaeger merged commit b1b0885 into main May 8, 2024
3 checks passed
@mwallschlaeger mwallschlaeger deleted the issue_#48_Feature_allow_searching_through_filter_parameter branch May 8, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: allow searching through filter parameter
1 participant