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

fix: Call setParents on MemDB tables #217

Merged
merged 1 commit into from
Apr 11, 2024
Merged

fix: Call setParents on MemDB tables #217

merged 1 commit into from
Apr 11, 2024

Conversation

erezrokah
Copy link
Member

@erezrokah erezrokah commented Apr 11, 2024

I noticed the table list for Bitbucket plugin is broken in the Hub. The reason is that we don't call setParents thus publish all tables as top level ones. The UI then tries to render items with duplicate keys and fails.

This PR fixes the MemDB plugin in the SDK which is used as a reference for other plugins. I'll fix the Bitbucket plugin in a separate PR.

There might be a better way to implicitly initialize the parents but I don't think we should spend more time on it

@erezrokah erezrokah requested a review from a team as a code owner April 11, 2024 12:19
@erezrokah erezrokah requested review from maaarcelino, a team and candiduslynx and removed request for a team and maaarcelino April 11, 2024 12:19
@erezrokah erezrokah added the automerge Add to automerge PRs once requirements are met label Apr 11, 2024
@kodiakhq kodiakhq bot merged commit 4015cb5 into main Apr 11, 2024
7 checks passed
@kodiakhq kodiakhq bot deleted the chore/set_parents branch April 11, 2024 12:41
kodiakhq bot pushed a commit that referenced this pull request Apr 11, 2024
🤖 I have created a release *beep* *boop*
---


## [0.0.27](v0.0.26...v0.0.27) (2024-04-11)


### Bug Fixes

* Call setParents on `MemDB` tables ([#217](#217)) ([4015cb5](4015cb5))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
erezrokah added a commit to cloudquery/cloudquery that referenced this pull request Apr 11, 2024
<!-- 🎉 Thank you for making CloudQuery awesome by submitting a PR 🎉 -->

#### Summary

Same as cloudquery/plugin-sdk-java#217
This should fix the broken tables page for the Bitbucket plugin here
https://hub.cloudquery.io/plugins/source/cloudquery/bitbucket/latest/tables

<!--
Use the following steps to ensure your PR is ready to be reviewed

- [ ] Read the [contribution
guidelines](https://github.com/cloudquery/cloudquery/blob/main/CONTRIBUTING.md)
🧑‍🎓
- [ ] Run `make lint` to ensure the proposed changes follow the coding
style 🚨 (install golangci-lint
[here](https://golangci-lint.run/usage/install/#local-installation))
- [ ] Run `make test` to ensure the proposed changes pass the tests 🧪
- [ ] If changing a source plugin run `make gen` to ensure docs are up
to date 📝
- [ ] Ensure the status checks below are successful ✅
--->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Add to automerge PRs once requirements are met
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants