This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Backend: New campaign flow #10985
Labels
batch-changes
Issues related to Batch Changes
estimate/12d
planned/3.17
planned/3.18
planned/3.19
RFC-157
Tickets related to RFC 157 - Campaigns authorization model
Milestone
Comments
eseliger
added
campaigns
estimate/5d
planned/3.17
batch-changes
Issues related to Batch Changes
RFC-157
Tickets related to RFC 157 - Campaigns authorization model
labels
May 26, 2020
Dear all, This is your release captain speaking. 🚂🚂🚂 Branch cut for the 3.17 release is scheduled for tomorrow. Is this issue / PR going to make it in time? Please change the milestone accordingly. Thank you |
mrnugget
changed the title
WIP: Backend: Inverted campaign creation workflow
WIP: Backend: New campaign flow
Jun 18, 2020
Dear all, This is your release captain speaking. 🚂🚂🚂 Branch cut for the 3.18 release is scheduled for tomorrow. Is this issue / PR going to make it in time? Please change the milestone accordingly. Thank you |
This was referenced Jul 20, 2020
I'm closing this after merging https://github.com/sourcegraph/sourcegraph/pull/12435. What's left to do in the backend has been extracted into separate tickets:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
batch-changes
Issues related to Batch Changes
estimate/12d
planned/3.17
planned/3.18
planned/3.19
RFC-157
Tickets related to RFC 157 - Campaigns authorization model
Docs/Schema in PR #10921
STATUS: WIP pull request is https://github.com/sourcegraph/sourcegraph/pull/11675 and the tasks below as a WIP until we've done 3.19 planning.
Conceptual/Docs/GraphQL Schema
The PR in which these higher-level changes should be proposed/made/discussed is https://github.com/sourcegraph/sourcegraph/pull/10921
campaign-spec.yml
Implementation Backend
The list below is not complete, but a rough overview of what has been done and needs to be done:
campaigns.Service
methods that were only used in old workflow (I decided to keep the type definitions and database tables forPatch
/PatchSet
/ChangesetJob
around, even though I anticipate that we will need to remove them)campaign_specs
&changeset_specs
database tables, Go type definitions and methods incampaigns.Store
CampaignSpecByID
query andCampaignSpec
resolver (some methods still have TODOs)ChangesetSpecByID
query andChangesetSpec
resolver (some methods still have TODOs)createChangesetSpec
mutationcreateCampaignSpec
mutationapplyCampaignSpec
moveCampaign
mutationCampaignSpec.Spec
toChangesetSpec.Description
after newest updates to update docs for new campaign flow #10921CampaignSpec
in(*Service).CreateCampaignSpec
(depends on schema, see above)ChangesetSpec
in(*Service).CreateChangesetSpec
(depends on schema, see above)on:
(unquoted!) in YAML definition ofCampaignSpec
{Campaign,Changeset}Specs
{Campaign,Changeset} Spec.ExpiresAt
ChangesetSpec
/CampaignSpec
resolvers so thatCampaignSpec.PreviewURL
workscreateCampaignSpec
check the user has access to the namespace it's creating the spec for.moveCampaign
check the user has access to the new namespace.Changeset.Status
APIstate
field toChangeset
CampaignSpec
state
field tochangesets
changeset_spec_id
tochangesets
Reconciler
that picks up unreconciled campaigns and creates the desired stateThe text was updated successfully, but these errors were encountered: