-
Notifications
You must be signed in to change notification settings - Fork 102
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
Enable context extension by default #211
Conversation
I was interested in using the Therefore, can we go ahead with adding this as a default extension? I think it would help new users - I was wondering why various operations I was trying with other tools were failing, and it was because they needed the context extension enabled. |
I would think that the extensions shouldn't be enabled by default. I would hope that stac-fastapi becomes a framework that provides all the tools to accomplish what you need. I would think that it is down to the implementer to enable the context extension (and any other extension) that will be required by their community of users and for clients to inspect the conformance classes to know whether a particular feature is enabled or not. It think the pgstac and sqlalchemy backends provide an implementation of the stac-fastapi framework. Perhaps the enabling of extensions could become a configurable option? |
The extensions added here are only for the example apps included in stac-fastapi. From what I can tell, normal usage would include a user creating their own instance of @robintw how are you using stac-fastapi? Are you importing the |
I originally started by importing You're right that this would improve discoverability: I only found out about the Context Extension by finding that various other tools failed to interact with my STAC server properly. I did some Googling and found that they needed the Context Extension, and then a bit more searching showed me that it was implemented in stac-fastapi, but just not switched on by default. I agree that having it in the example apps would be useful. (I might see if I can submit a PR with a bit of an update to the documentation emphasising that the defined |
Thanks, that make sense - @jaysnm are you using the |
Thanks for this conversation. Based on comments here, it turns out I have been running STAC back-end(s) the wrong way. In my team, we discourage building custom layer on top of upstream projects unless it's justifiably necessary (keeping track of updates and breaking changes adds to maintenance overheads). In practice thus, I directly use |
This approach worked pretty fine for us and by so doing we were able to support other functionaries that were ambiguous previously. Our implementation was pretty simple!
Upstream repository is as good without this PR patches. Going forward, this PR can be closed. I'm happy to contribute into docs with an example |
@jaysnm This needs a quick rebase and then I'd be happy to get it merged. Let me know if you can't find the time; I should be able to take care of things if that's helpful |
…tapi into enable-context-extension
Hi @moradology. This is done and change-log updated. Let me know if any other change is need. |
Awesome. Thanks for the contribution! |
My pleasure.Thanks! |
A work around issue #207
ContextExtension
forpgstac
need be implemented, not working at the moment.