-
Notifications
You must be signed in to change notification settings - Fork 32
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
Created core ents and implemented createJob mutation #83
Conversation
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.
Few small changes:
- Move .devcontainer changes to a seperate PR.
- Change test to use managed resources.
entgql.Skip(entgql.SkipMutationCreateInput), | ||
). | ||
Comment("Bundle file that the executing tome depends on (if any)"). | ||
Unique(), |
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.
Is this the file resources used inside the tome?
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.
Yessir o7
@@ -15,13 +15,30 @@ type Task struct { | |||
// Fields of the Task. | |||
func (Task) Fields() []ent.Field { | |||
return []ent.Field{ | |||
field.String("name"). |
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.
No task names? Are we only using the unique ID to reference tasks?
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.
Jobs have the name, and tasks have an edge to the job
What type of PR is this?
/kind feature
/kind api-change
What this PR does / why we need it:
Updates our ents, adds appropriate fields, uses mixins and hooks for optimal code reuse and bug avoidance, and implements the
createJob
mutation (with tests!).Which issue(s) this PR fixes:
Maybe I should make issues first