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

Improve SearchClient docs, deprecate entry methods #695

Merged
merged 1 commit into from
Mar 2, 2023

Conversation

sirosen
Copy link
Member

@sirosen sirosen commented Mar 1, 2023

The create_entry and update_entry methods are misleadingly named. We may or may not be able to remove these aliasing APIs from the service, but we should at least discourage their use via the SDK. Redirect users of these methods to Ingest, which is the only behavior offered by all three of these APIs.

Even if we were to support this operation in the SDK, having a single API with two methods is confusing because it suggests that there is some difference.

Instead, we would probably want to implement write_entry if we need a succcessor method.


📚 Documentation preview 📚: https://globus-sdk-python--695.org.readthedocs.build/en/695/

The create_entry and update_entry methods are misleadingly named. We
may or may not be able to remove these aliasing APIs from the service,
but we should at least discourage their use via the SDK. Redirect
users of these methods to Ingest, which is the only behavior offered
by all three of these APIs.

Even if we were to support this operation in the SDK, having a single
API with two methods is confusing because it suggests that there is
some difference.

Instead, we would probably want to implement `write_entry` if we need
a succcessor method.
Copy link
Member

@kurtmckee kurtmckee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I think that the deprecated functions could call the authoritative methods they recommend calling (which would change the logging messages) but this approach is more exacting.

@sirosen sirosen merged commit cffde20 into globus:main Mar 2, 2023
@sirosen sirosen deleted the improve-search-method-docs branch March 2, 2023 19:03
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

Successfully merging this pull request may close these issues.

3 participants