-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
HANA database provider #893
Conversation
Pull Request Test Coverage Report for Build ffc36ce66-PR-893
💛 - Coveralls |
@mrylov wow! We sure weren't expecting this PR to show up.
When I saw this PR my first thought was "Great! But who's going to help support this functionality?" I'm glad you addressed this. Once we get this through code review let's figure out how to best document this point of contact. I have not had a chance to review this PR in depth, but my first glance review was looking at which tile providers you implemented. It looks like you're targeting both the normal tile provider and the mvt_provider, which is excellent. I did notice that it looks like there's some commented out code for the Also a quick request, can you please clean up the commits in this PR? Generally speaking we like commits broken into logical chunks as this helps with code review. Since you're vendoring code in this PR I usually step through the PRs commits not reviewing the commit with the vendored code. Thanks for the contribution! |
Hi @ARolek, As you mentioned above, we did implement both types of providers. However, we did comment some code, as there was an issue in the implementation of the ST_AsMVT function on the HANA side. The issue must have been fixed now. Regarding your request, I can reorganize the PR in the following commits:
Is this structure sufficient to start the review? |
Excellent. It would be great to support ST_AsMVT as it's usually more performant and less error prone than tegola's native geo processing.
Looks good to me, with one additional request, please have a separate commit for code vendoring. If you want, you could even reduce this to 3 commits: Vendoring, NewTileProvider, NewMVTTileProvider. Thanks! |
Thank you @ARolek. What exactly do you mean by Vendoring? Do you mean any changes related to the vendor folder, as well as to the go.mod and go.sum files? |
Correct. When you run |
d3a55f0
to
12fb39c
Compare
@ARolek, I've restructured the commits as you requested. |
Sounds good! we can review the second commit for now. Enjoy the weekend. |
12fb39c
to
67b9be1
Compare
@ARolek, I've adjusted some tests in TestMVTForLayers as we updated our HANA instance. |
Excellent! I still need to give this a review. Will do so soon. Can you please rebase against |
67b9be1
to
9d0b52e
Compare
@ARolek, I'm looking forward. I've rebased the commits. |
Hi @ARolek, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mrylov apologies for the delay and thanks for the bump. Your PR has been sitting in my inbox since it was originally submitted, life has just been a bit crazy.
I just gave this a review and honestly it's excellent. You blended with the codebase really well, you have applicable tests, flushed out READMEs and clean, organized commits. I don't have any significant comments.
@gdey is going to give this a review too, but I don't have any blockers at this time.
When it comes to supporting this feature, where should we direct anyone inquiring for help on this particular provider?
Thanks for the contribution (and patience)!
Superb! Thank you very much @ARolek. I will be responsible for supporting the HANA provider, so you can refer anyone to me if there are any questions or issues |
Excellent. I just approved the CI to run on this PR, and the last thing we need is a review from @gdey. I have been in touch with him and it should happen shortly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This is great! Thank you for the wonderful job!
One quick thing: There looks to be a username and password in the test, if this is true, let's move those creds to GitHub Secrets; if not just let me know, and I'll approve the PR.
Second:
Could you add yourself as the Owner of this code base?
Modify the file: .github/CODEOWNERS
and append the following to the end of the file:
#maintainer of HANA database provider
/provider/hana @mrylov
This will ensure that you are included anytime someone touches this path.
Thank you!
@ARolek Do we already have a PR that updates the UI? The failing test here is because of that. I really don't think that update should be part of this PR. |
LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@mrylov Can we have two things? So, I can merge this in.
Thank you! |
63a67b0
to
3f4852f
Compare
@gdey, I've done as you said. Many thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I will deploy once CI is good. (Not counting any UI issues related to #914
We will merge this in after #916; which fixes the UI issues the CI on this is breaking on. |
As per @mrylov comment here: https://github.com/go-spatial/tegola/pull/893\#discussion_r1136602372 the connection string is exposed on purpose.
As per @mrylov comment here: https://github.com/go-spatial/tegola/pull/893\#discussion_r1136602372 the connection string is exposed on purpose.
Dear Tegola community,
We, the SAP HANA Spatial Team, would like to add HANA support to the Tegola tile server. SAP HANA is an in-memory database with an OGC-compliant spatial engine. A free community edition of SAP HANA is available here.
Content
This pull request includes:
Requirements
The HANA provider requires the open-source library go-hdb that is used to connect to a HANA instance. Note, this driver requires at least go v.1.18 and to change some dependencies in the vendor directory.
License
The HANA provider is licensed under the MIT license.
Responsibilities
We promise to keep tracking of new issues/bugs, CI runs, API changes, documentation
improvements related to the HANA provider and make sure that they are fixed/implemented promptly.
There will be a contact person at SAP responsible for the maintenance.