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(vdp): better casting errors #65

Merged
merged 2 commits into from
Mar 7, 2024
Merged

fix(vdp): better casting errors #65

merged 2 commits into from
Mar 7, 2024

Conversation

jvallesm
Copy link
Collaborator

@jvallesm jvallesm commented Mar 6, 2024

Because

  • description field in operator is now in imperative format
  • When a connector / operator definition is fetched, it is pulled from the component definition list. When an error occurs, we can't know if it's because it doesn't exist or because the type is wrong.

This commit

  • Updates compogen tests
  • Improves the error messages for the "get by ID / UID" component definition methods.

@jvallesm jvallesm self-assigned this Mar 6, 2024
Copy link

codecov bot commented Mar 6, 2024

Codecov Report

Attention: Patch coverage is 0% with 24 lines in your changes are missing coverage. Please review.

Project coverage is 45.59%. Comparing base (85bbc22) to head (195366c).

Files Patch % Lines
pkg/base/connector.go 0.00% 11 Missing ⚠️
pkg/base/operator.go 0.00% 11 Missing ⚠️
pkg/base/component.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #65      +/-   ##
==========================================
- Coverage   46.25%   45.59%   -0.66%     
==========================================
  Files           6        6              
  Lines        1120     1136      +16     
==========================================
  Hits          518      518              
- Misses        513      529      +16     
  Partials       89       89              
Flag Coverage Δ
unittests 45.59% <0.00%> (-0.66%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jvallesm jvallesm changed the title fix/better casting errs fix(vdp): better casting errors Mar 6, 2024
@jvallesm jvallesm marked this pull request as ready for review March 6, 2024 18:30
@donch1989 donch1989 merged commit 81e34c4 into main Mar 7, 2024
13 of 14 checks passed
@donch1989 donch1989 deleted the fix/better-casting-errs branch March 7, 2024 01:47
donch1989 pushed a commit that referenced this pull request Mar 12, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.13.0-beta](v0.12.0-beta...v0.13.0-beta)
(2024-03-07)


### Features

* expose description field in component entities
([#62](#62))
([85bbc22](85bbc22))
* simplify `openapi_specifications` to `data_specifications`
([#64](#64))
([7c27d15](7c27d15))


### Bug Fixes

* **vdp:** better casting errors
([#65](#65))
([81e34c4](81e34c4))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
namwoam pushed a commit to namwoam/component that referenced this pull request Jun 24, 2024
Because

- `description` field in operator is now in imperative format
- When a connector / operator definition is fetched, it is pulled from
the component definition list. When an error occurs, we can't know if
it's because it doesn't exist or because the type is wrong.

This commit

- Updates `compogen` tests
- Improves the error messages for the "get by ID / UID" component
definition methods.
namwoam pushed a commit to namwoam/component that referenced this pull request Jun 24, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.13.0-beta](instill-ai/component@v0.12.0-beta...v0.13.0-beta)
(2024-03-07)


### Features

* expose description field in component entities
([instill-ai#62](instill-ai#62))
([85bbc22](instill-ai@85bbc22))
* simplify `openapi_specifications` to `data_specifications`
([instill-ai#64](instill-ai#64))
([7c27d15](instill-ai@7c27d15))


### Bug Fixes

* **vdp:** better casting errors
([instill-ai#65](instill-ai#65))
([81e34c4](instill-ai@81e34c4))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
3 participants