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

MetapropertiesQuery support more query parameters #107

Open
colinmanning opened this issue Sep 26, 2023 · 9 comments
Open

MetapropertiesQuery support more query parameters #107

colinmanning opened this issue Sep 26, 2023 · 9 comments

Comments

@colinmanning
Copy link
Contributor

When making a request for all metaproperties, the call can timeout if some metaproperties have large numbers of options (e.g. a complex taxonomy).

To get around this, it should be possible to query metaproperties without options (options=0) and then only request the options for metaproperties of interest. This can be done easily via the REST calls, but not currently via the Java SDK.

An easy solution is to add the properties "options" and "id", so the relevant REST calls can be made.

I have made a branch to implement this and I can push it and create pull request.

@colinmanning
Copy link
Contributor Author

As I do not have permissions to push a branch, someone else needs to do this, in the meantime I work my my local fork.

@TimBloembergen
Copy link

@colinmanning Feel free to create a PR! Our team will review the code and if it's up to our standards we will merge and release a new version of the SDK.

We really appreciate our users contributing to the SDK's.

@colinmanning
Copy link
Contributor Author

@TimBloembergen I don't have permission to push my branch. Ca you sort that for me. I get this error:

ERROR: Permission to Bynder/bynder-java-sdk.git denied to colinmanning.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights

@dylanmartins
Copy link

@TimBloembergen I don't have permission to push my branch. Ca you sort that for me. I get this error:

Hey @colinmanning what do you mean by push my branch? Can you describe what you're doing?

I ask this because I just tested creating a fork > commiting > creating the PR and it worked fine 🤔

Thanks!

@colinmanning
Copy link
Contributor Author

colinmanning commented Sep 26, 2023

@dylanmartins - OK, I am not using GitHub workflows much at the moment, I cloned master, made a local branch and tried to push it to make a PR - it's what we do using GitLab.

Anyway, I will fork as you suggest later then and go that way. The code changes are trivial, just replicating the way properties are created in the class already, so it's a bit of monkey coding. I will do this later when I get time.

colinmanning pushed a commit to colinmanning/bynder-java-sdk that referenced this issue Sep 26, 2023
…ss MetapropertiesQuery to support getting all metaproperties without options and retrieving individual metaproperties (with options if needed)
ahongbynder pushed a commit that referenced this issue Sep 27, 2023
#109)

* Implement Issue #107 - add properties "options" and "id" to class MetapropertiesQuery to support getting all metaproperties without options and retrieving individual metaproperties (with options if needed)

* replace property "id" with "ids" in MetapropertyQuery to ensure a dictionary (Map) is returned, and so not break the retrofix introspection. Add basic unit tests for MetapropertyQuery.

---------

Co-authored-by: Colin Manning <[email protected]>
@ahongbynder
Copy link
Contributor

@colinmanning Merged your changes into master and created a new release version for 2.2.19. Right now debugging whether GitHub action to deploy latest version to Maven ran successfully, pending this.

@colinmanning
Copy link
Contributor Author

@colinmanning Merged your changes into master and created a new release version for 2.2.19. Right now debugging whether GitHub action to deploy latest version to Maven ran successfully, pending this.

Quick heads up as today is my last day working at zetcom, it would be good to know if 2.2.19 will be available today in Maven Central. If not, I have instructed my team on the issue, and they can work with the local fork. As the formk is on my private GitHub account, I will not delete it for now.

@ahongbynder
Copy link
Contributor

@colinmanning Most likely not, looks like GitHub Actions was disabled for this repo which is needed for us to deploy to Maven Central. Until this is resolved, we're dependent on the action back up and running before it reaches Maven Central.

@ahongbynder
Copy link
Contributor

@colinmanning GitHub actions were re-enabled. Deleted and published 2.2.19, release job ran successfully. Version 2.2.19 published at https://central.sonatype.com/artifact/com.bynder/bynder-java-sdk. Feel free to let your old team know this is updated and verify if it's working, thanks.

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

No branches or pull requests

4 participants