-
Notifications
You must be signed in to change notification settings - Fork 4
Add Meadow.Data.Schemas.AgentPlan schema and Meadow.Data.Planner context #4851
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
Conversation
df05a27 to
dbc17b0
Compare
dbc17b0 to
f0ae43d
Compare
|
My understanding of the plan is that it's going to target individual works with specific updates, e.g., a single plan could:
So my questions given this implementation are:
This looks like an alternate implementation of the regular batch update, but with the changes submitted by an agent instead of a user. But I got the impression that we were trying to make the agent's approach much more granular. |
|
@bmquinn - I think the PR needs to go into |
|
I'm not sure if I have the same questions as @mbklein or not so apologies if this is a duplicate question. So, from our discussions what I envisioned was basically one row for each work with a plan_id column (so actually two tables). So that if the front end needed to retrieve changes for an individual work in the plan or to edit or remove an individual work in the plan they would be editing/retrieving one row. And to get the whole plan you would lookup by plan id. So, my questions are, what is the id in the table here? Is that the plan's id? Is it one entry for the entire plan and then the changeset column contains all the works? And then where do you associate the specific changes in the changeset with the appropriate work id? |
|
I think our questions are different on the specifics but the same in terms of conceptualizing exactly what a “plan” is. |
|
Honestly my approach was to keep things as simple as possible so we could have this discussion, and coalesce around what a |
|
Looking closer, I think the schema looks great except:
|
f0ae43d to
8a13d4b
Compare
6d759b9 to
4800fd4
Compare
4800fd4 to
2cf4fa7
Compare
d06f077 to
cca3689
Compare
|
I like the overall shape of this one. I think it's worth merging into the |
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.
Looks 👍
Add Meadow.Data.Schemas.AgentPlan schema and Meadow.Data.Planner context
Summary
First, make sure to run the migrations:
mix ecto.migrateSpecific Changes in this PR
Version bump required by the PR
See Semantic Versioning 2.0.0 for help discerning which is required.
Steps to Test
Please let end users know what they need to do to test on staging or production
Also please let developers know if there are any special instructions to test this in the development environment.
🚀 Deployment Notes
Note - if you check any of these boxes go to the (always open)
main<-stagingPR and add detailed notes and instructions to help out others who may end up deploying your changes to productionmix meadow.pipeline.setuprun)miscellanyTested/Verified