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

Support for Property Definitions #308

Merged
28 commits merged into from
Dec 8, 2023
Merged

Support for Property Definitions #308

28 commits merged into from
Dec 8, 2023

Conversation

ghost
Copy link

@ghost ghost commented Nov 15, 2023

Issues

https://github.com/OpsLevel/team-platform/issues/122

Relies on #317

Changelog

  • Add CRUD functions for property definitions
  • Testing
  • Refactor for JSONString
  • Make a changie entry

Tophatting

Tests should pass.

@ghost ghost requested review from rocktavious and davidbloss November 15, 2023 19:35
@ghost ghost self-assigned this Nov 15, 2023
@ghost ghost force-pushed the service-props branch from 1e77bc5 to 42300e2 Compare November 15, 2023 19:40
property.go Outdated Show resolved Hide resolved
@ghost ghost force-pushed the service-props branch from 42300e2 to c44140c Compare November 15, 2023 19:41
Copy link

codecov bot commented Nov 15, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (478ed1e) 76.90% compared to head (88a0df4) 77.21%.

Files Patch % Lines
property.go 86.95% 3 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #308      +/-   ##
==========================================
+ Coverage   76.90%   77.21%   +0.31%     
==========================================
  Files          50       51       +1     
  Lines        3338     3384      +46     
==========================================
+ Hits         2567     2613      +46     
+ Misses        566      563       -3     
- Partials      205      208       +3     

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

property.go Outdated Show resolved Hide resolved
property.go Outdated Show resolved Hide resolved
property.go Outdated Show resolved Hide resolved
property.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@rocktavious rocktavious left a comment

Choose a reason for hiding this comment

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

Needs a few tweaks before its ready to ship

property_test.go Outdated Show resolved Hide resolved
@ghost ghost force-pushed the service-props branch from 49398fc to 5e0bf98 Compare November 28, 2023 18:12
@ghost ghost requested a review from davidbloss November 28, 2023 20:14
property.go Outdated Show resolved Hide resolved
property.go Outdated Show resolved Hide resolved
@ghost ghost force-pushed the service-props branch from 2318d9a to ef16b57 Compare November 28, 2023 21:44
@ghost ghost force-pushed the service-props branch 2 times, most recently from 570217a to afea0f2 Compare December 7, 2023 18:58
@ghost ghost changed the base branch from main to kr/json-input December 7, 2023 18:58
@ghost ghost requested review from rocktavious and davidbloss December 7, 2023 20:21
property.go Show resolved Hide resolved
property.go Outdated Show resolved Hide resolved
Base automatically changed from kr/json-input to main December 7, 2023 20:40
@ghost ghost force-pushed the service-props branch from 924c0bf to 694a9f3 Compare December 7, 2023 20:43
@ghost ghost requested review from rocktavious and davidbloss December 7, 2023 20:53
Copy link
Contributor

@davidbloss davidbloss left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

…a-field-to-jsonstring

make PropertyDefinition.Schema field a JSONString type, update tests
Aliases []string `graphql:"aliases" json:"aliases"`
Id ID `graphql:"id" json:"id"`
Name string `graphql:"name" json:"name"`
Schema JSON `json:"schema" scalar:"true"` // Do not add graphql struct tag here
Copy link
Collaborator

@rocktavious rocktavious Dec 8, 2023

Choose a reason for hiding this comment

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

well you can add graphql struct tags if you neeed - you actually just need scalar:"true" because JSON is a custom scalar type we wrote.

@ghost ghost merged commit 1b697a1 into main Dec 8, 2023
5 checks passed
@ghost ghost deleted the service-props branch December 8, 2023 21:53
davidbloss added a commit that referenced this pull request Dec 14, 2023
support for property definitions

---

Co-authored-by: Rocktavious <[email protected]>
Co-authored-by: Kyle <[email protected]>
Co-authored-by: David Bloss <[email protected]>
This pull request was closed.
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.

2 participants