everbee7 / everbee7/cryptogpt-io

Delete Customers and Sites Functionality

Open
#59 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
9
Forks
0
PR merge metrics
No merged PRs in 30d

Description

We need to replicate existing Job and WO functionality in order to help with deleting customers and sites.

Follow the existing Job and WO functionality to:

- Mark the local database records as deleted
- Mark the sfsp add_db_object_update_status() tracking record as deleted
- Attempt to delete in SF

I don't think SF will let us if there are related records but we can try and if not then return an error message that the user has to "move the records associated with this Customer/Site within Salesforce before deletion" - still make sure the other db records are marked as deleted in this case

- Additionally add same delete attempt in Salesforce for Jobs and WOs with the same response handling
- We cannot delete in Spectrum, so there should be the same warning/info as shown for Jobs and WOs

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the existing Job and WO deletion entry points, including their local database updates, sfsp add_db_object_update_status() tracking, Salesforce attempts, and Spectrum messaging. Trace those flows before implementing equivalent Customer and Site handling, plus the requested Job and WO response behavior; done means records are marked deleted, Salesforce failures return the specified guidance, and Spectrum shows the same warning or information.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, typescript
Domain
api, backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.