Skip to content

feat: allow changing opportunity type#742

Open
kiborrdis wants to merge 2 commits into
need4deed-org:developfrom
kiborrdis:change-opportunity-type
Open

feat: allow changing opportunity type#742
kiborrdis wants to merge 2 commits into
need4deed-org:developfrom
kiborrdis:change-opportunity-type

Conversation

@kiborrdis

@kiborrdis kiborrdis commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Description

Allow changing opportunity type via PATCH /opportunity/:id

Related Issues

Closes #730

Changes

  • Add opportunity_type to schema
  • Add passthrough of opportunity_type in patch data parsing
  • Add creation on new accompanying record for opportunity, if there is none and type is being changed to accompanying

Checklist

  • opportunity_type changes if present in patch data
  • opportunity_type remains the same if not present in patch data
  • if opportunity_type is changed to accompanying, accompanying record is created
  • if there is accompanying in patch data, and opportunity_type is not accompanying, record is not created

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.

feat: allow changing opportunity type (accompanying/regular/event) via PATCH /opportunity/:id

1 participant