chore: remove backlog references from code and documentation
This commit is contained in:
1 parent
0529601021
commit
8e7ce8d71c
129 files changed
+699
-701
No files matched your search
@@ -48,11 +48,11 @@ func (c *codeRecorder) Unwrap() http.ResponseWriter {
|
||||
// Allowed in `delivered` and `viewed` before `response_deadline_at`; accepting directly from
|
||||
// `delivered` is allowed, as in the PRD FR12 transition table. In one transaction the server moves the
|
||||
// invitation to `accepted`, records the consent C4 in the consent ledger with the organization, the
|
||||
// fields, the invitation, the terms version, and the text version and its hash (TASK-062), creates the
|
||||
// contact grant for exactly those fields, and writes the audit event (TASK-201). The response is the
|
||||
// invitation with `contact_grant`. The acceptance never publishes the profile (C2) and never bypasses
|
||||
// a profile hidden from the organization: the grant alone does not guarantee a read, and the
|
||||
// organization reads only while the visibility allows it.
|
||||
// fields, the invitation, the terms version, and the text version and its hash, creates the contact
|
||||
// grant for exactly those fields, and writes the audit event. The response is the invitation with
|
||||
// `contact_grant`. The acceptance never publishes the profile (C2) and never bypasses a profile hidden
|
||||
// from the organization: the grant alone does not guarantee a read, and the organization reads only
|
||||
// while the visibility allows it.
|
||||
//
|
||||
// 412 or 409: a `terms_version` or `expected_version` that is not current answers 412
|
||||
// version_conflict, the repository status for a stale version, and records nothing; this is the stale
|
||||
@@ -62,9 +62,9 @@ func (c *codeRecorder) Unwrap() http.ResponseWriter {
|
||||
// the planned `counter`, or a command received at the deadline or later, which is late. A terminal
|
||||
// state and a passed deadline are checked before the versions: the server first applies the due
|
||||
// expiry, and the client then gets 409 for a withdrawn, expired, or late invitation even when its
|
||||
// versions are stale, so it shows the final state instead of rereading and retrying. TASK-197,
|
||||
// TASK-201, and TASK-204 say 409 for stale terms; the repository rule keeps 412 for any stale version,
|
||||
// so clients branch on `version_conflict` to reread and on `state_conflict` to show the final state.
|
||||
// versions are stale, so it shows the final state instead of rereading and retrying. The repository
|
||||
// rule keeps 412 for any stale version, so clients branch on `version_conflict` to reread and on
|
||||
// `state_conflict` to show the final state.
|
||||
//
|
||||
// Repeats return the same result: a retry with the same Idempotency-Key replays the stored response,
|
||||
// and an acceptance of an invitation that is already `accepted` whose `terms_version` and set of
|
||||
@@ -72,8 +72,8 @@ func (c *codeRecorder) Unwrap() http.ResponseWriter {
|
||||
// answers 200 with it even with a new key, an older `expected_version`, or a current `terms_version`
|
||||
// that a later raise advanced; no second consent, grant, or audit event is created. A different terms
|
||||
// version or field set on an accepted invitation answers 409 state_conflict; changing the disclosed
|
||||
// fields is a matter of the consent operations (TASK-064). Of two concurrent acceptances only one
|
||||
// makes the transition.
|
||||
// fields is a matter of the consent operations. Of two concurrent acceptances only one makes the
|
||||
// transition.
|
||||
//
|
||||
// Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400),
|
||||
// account scenario (403 forbidden for an employer), the Idempotency-Key (422, 409
|
||||
@@ -330,7 +330,7 @@ func (s *Server) handleAcceptMyInvitationRequest(args [1]string, argsEscaped boo
|
||||
// In the same transaction the server revokes the contact grant that the acceptance of this invitation
|
||||
// created, with the reason `participation_cancelled`, so the next contact read of the organization
|
||||
// answers 404. Grants of other invitations or applications stay; revoking the consent C4 for the
|
||||
// organization as a whole, which closes all of them, belongs to the consent operations (TASK-064).
|
||||
// organization as a whole, which closes all of them, belongs to the consent operations.
|
||||
//
|
||||
// Cancel differs from decline and withdraw: a decline is the structured answer before an acceptance
|
||||
// and counts as a response; a cancellation leaves the process at any unfinished stage, mostly after an
|
||||
@@ -1048,10 +1048,10 @@ func (s *Server) handleCreateMyAssessmentAttemptRequest(args [0]string, argsEsca
|
||||
// `manual_assessment` | candidate | optional; a prior `assessment_attempt` of the caller in the same specialization | required `assessment_target`
|
||||
//
|
||||
// An organization is visible to a candidate when it sent the candidate an invitation or when the
|
||||
// organization contract (TASK-077) shows the candidate its profile, and to an employer account when
|
||||
// the account has an active membership in it. Invitations are in the contract (TASK-196) but not
|
||||
// implemented yet, so until they are, every `invitation` reference answers 404 not_found; anti-cheat
|
||||
// review decisions are not either, so until TASK-173 every anti-cheat appeal answers 409
|
||||
// organization contract shows the candidate its profile, and to an employer account when the account
|
||||
// has an active membership in it. Invitations are in the contract but not implemented yet, so until
|
||||
// they are, every `invitation` reference answers 404 not_found; anti-cheat review decisions are not
|
||||
// either, so until review decisions are implemented, every anti-cheat appeal answers 409
|
||||
// state_conflict. The schema rejects an object type that the case type does not accept, for example an
|
||||
// organization in a grade appeal.
|
||||
//
|
||||
@@ -1631,7 +1631,7 @@ func (s *Server) handleCreateOrganizationRequest(args [0]string, argsEscaped boo
|
||||
// indicator-relevant setting: it counts against the limit shared by the whole organization with the
|
||||
// ranges of needs, at most three settings a day, and against the withheld counter, after five settings
|
||||
// within seven days the indicator is `withheld` for seven days from the fifth, on every draft and
|
||||
// invitation of the organization (PRD FR13, planned in TASK-211; see InvitationSalaryFit). Over the
|
||||
// invitation of the organization (PRD FR13, enforcement planned; see InvitationSalaryFit). Over the
|
||||
// limit the server answers 429 with Retry-After and creates nothing.
|
||||
//
|
||||
// Idempotency: a retry with the same key and body within 24 hours replays the stored 201 and creates
|
||||
@@ -1913,10 +1913,10 @@ func (s *Server) handleCreateOrganizationInvitationRequest(args [1]string, argsE
|
||||
//
|
||||
// Salary limit: setting a salary range counts against a limit shared by the whole organization, every
|
||||
// member and every need, on creation as on a change: at most three range settings a day (PRD FR13,
|
||||
// planned in TASK-211). Over the limit the server answers 429 with Retry-After and creates nothing.
|
||||
// enforcement planned). Over the limit the server answers 429 with Retry-After and creates nothing.
|
||||
// After five settings within seven days the money component of the recommendations is `withheld` for
|
||||
// seven days. The limit keeps an organization from probing hidden candidate minimums with new needs
|
||||
// instead of edits; repeated range changes also feed the private risk signals of TASK-319.
|
||||
// instead of edits; repeated range changes also feed the private organization risk signals.
|
||||
//
|
||||
// Idempotency: a retry with the same key and body within 24 hours replays the stored 201 and creates
|
||||
// nothing, so a lost response never creates a second need. A different body with the same key answers
|
||||
@@ -5051,9 +5051,9 @@ func (s *Server) handleGetMyQuestionnaireRequest(args [0]string, argsEscaped boo
|
||||
//
|
||||
// The case must belong to the account of the session: a case of another account, including another
|
||||
// member of the same organization, answers 404 not_found, the same as an unknown identifier, so
|
||||
// identifiers cannot be probed. TASK-314 says forbidden for a foreign case URL; the contract answers
|
||||
// 404 instead, so the client shows the same "not found" state for a foreign and an unknown case. A
|
||||
// malformed `case_id` answers 400 validation_failed with the path pointer.
|
||||
// identifiers cannot be probed. The contract answers 404, so the client shows the same "not found"
|
||||
// state for a foreign and an unknown case. A malformed `case_id` answers 400 validation_failed with
|
||||
// the path pointer.
|
||||
//
|
||||
// GET /api/v1/me/support-cases/{case_id}
|
||||
func (s *Server) handleGetMySupportCaseRequest(args [1]string, argsEscaped bool, w http.ResponseWriter, r *http.Request) {
|
||||
@@ -5693,8 +5693,7 @@ func (s *Server) handleGetOrganizationInvitationRequest(args [2]string, argsEsca
|
||||
// handleGetOrganizationInvitationContactsRequest handles GetOrganizationInvitationContacts operation.
|
||||
//
|
||||
// Requires the session cookie of an employer account with an active membership in `org_id`. In the MVP
|
||||
// only the owner of the organization reads contacts (TASK-202); the other roles of PRD FR07 are
|
||||
// planned.
|
||||
// only the owner of the organization reads contacts; the other roles of PRD FR07 are planned.
|
||||
//
|
||||
// This is the only operation that returns contact values, and its response is separate from the terms
|
||||
// and from the invitation. It answers only while a grant created by the acceptance of this invitation
|
||||
@@ -5714,8 +5713,8 @@ func (s *Server) handleGetOrganizationInvitationRequest(args [2]string, argsEsca
|
||||
// Withdrawing the invitation keeps an existing grant. A later publication of the profile never reopens
|
||||
// a closed grant; only a new explicit C4 creates a new one.
|
||||
//
|
||||
// Every successful read is recorded in the access audit (planned in TASK-090 and TASK-202), and the
|
||||
// response has `Cache-Control: no-store`.
|
||||
// Every successful read is recorded in the access audit (planned with the contact access history), and
|
||||
// the response has `Cache-Control: no-store`.
|
||||
//
|
||||
// Access: a missing, unknown, expired, or revoked session answers 401 unauthenticated; a candidate
|
||||
// account answers 403 forbidden; an account without an active membership in the organization, an
|
||||
@@ -6566,8 +6565,8 @@ func (s *Server) handleHideOrganizationRequest(args [1]string, argsEscaped bool,
|
||||
// hidden organization cannot read the card.
|
||||
//
|
||||
// The storage of accesses is planned with the card and contact operations of the organization side
|
||||
// (TASK-185 and the contact read of the invitation contract); until then the operation answers 501
|
||||
// not_implemented after the session and request checks.
|
||||
// (anonymous card reads and contact reads under the invitation contract); until then the operation
|
||||
// answers 501 not_implemented after the session and request checks.
|
||||
//
|
||||
// A missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account
|
||||
// answers 403 forbidden. A malformed `limit` or `cursor` answers 400 validation_failed.
|
||||
@@ -6791,10 +6790,10 @@ func (s *Server) handleListMyCardAccessHistoryRequest(args [0]string, argsEscape
|
||||
// organization with the name its consent text showed (a snapshot that a later rename does not change),
|
||||
// the selected contact fields, and the invitation with its terms version; it never carries a contact
|
||||
// value. A c2 record proves the consent to the publication text; the published field set and its
|
||||
// changes are evidence of the publication history (TASK-088).
|
||||
// changes are evidence of the publication history.
|
||||
//
|
||||
// Granting c1, c2, c3, and c5 in the consent settings and revoking any purpose are planned operations
|
||||
// of this tag (TASK-063 and TASK-064); c1 is given at registration and c4 only in AcceptMyInvitation.
|
||||
// of this tag; c1 is given at registration and c4 only in AcceptMyInvitation.
|
||||
//
|
||||
// Access: a missing, unknown, expired, or revoked session answers 401 unauthenticated. A malformed
|
||||
// `limit`, `cursor`, or `state` answers 400 validation_failed.
|
||||
@@ -10080,9 +10079,9 @@ func (s *Server) handleSaveMyQuestionnaireRequest(args [0]string, argsEscaped bo
|
||||
// Sends the current terms version of a `draft`. Sending is internal and never visible as a state: in
|
||||
// one transaction the server records the delivery, creates the candidate's inbox entry, starts the
|
||||
// deadline `response_deadline_at = delivered_at + response_period_days`, spends one invitation of the
|
||||
// weekly organization quota, and writes the outbox event for the notification (TASK-199), then answers
|
||||
// 200 with the state `delivered`. A successful answer therefore means the candidate can already read
|
||||
// the invitation; an email is a separate notification that never blocks or delays it, and its retries
|
||||
// weekly organization quota, and writes the outbox event for the notification, then answers 200 with
|
||||
// the state `delivered`. A successful answer therefore means the candidate can already read the
|
||||
// invitation; an email is a separate notification that never blocks or delays it, and its retries
|
||||
// never move the deadline. No contact of the candidate is disclosed by sending.
|
||||
//
|
||||
// The server checks again that the candidate is still visible to the organization: a revoked
|
||||
@@ -10090,8 +10089,8 @@ func (s *Server) handleSaveMyQuestionnaireRequest(args [0]string, argsEscaped bo
|
||||
// which. It also enforces the limits of the product policy: at most 20 invitations waiting for an
|
||||
// answer per need (`delivered`, `viewed`, `counter`) and the 30-day pause for the pair of the
|
||||
// organization and the candidate after a decline or a no deal, regardless of the member or the need,
|
||||
// both with 409 state_conflict; and the rolling weekly quota of the organization (TASK-087), with 429
|
||||
// and Retry-After. The pending limit and the quota are planned in TASK-205 and TASK-087.
|
||||
// both with 409 state_conflict; and the rolling weekly quota of the organization, with 429 and
|
||||
// Retry-After. Enforcement of the pending limit and the organization quota is planned.
|
||||
//
|
||||
// Repeats return the same result: a retry with the same Idempotency-Key replays the stored response,
|
||||
// and a send of an invitation that was already sent answers 200 with the invitation in its current
|
||||
@@ -10355,18 +10354,18 @@ func (s *Server) handleSendOrganizationInvitationRequest(args [2]string, argsEsc
|
||||
// the account and binds the publication to that record, so a client sends no consent identifier and
|
||||
// cannot forge one. Without one the server answers 409 state_conflict with the entry
|
||||
// `{in: body, pointer: /state, code: consent_required}` in `errors`, which tells it apart from every
|
||||
// other conflict, and changes nothing: the client gives C2 first (planned in the consent settings,
|
||||
// TASK-063) and then publishes. The server takes the C2 record under a share lock in the transaction
|
||||
// that writes the publication, so a revocation that races with a publication either commits first (the
|
||||
// publication is refused) or closes the card right after. A revocation of C2 closes the card at once,
|
||||
// because `state` is computed from the unrevoked record; a later C2 grant never reopens it, and the
|
||||
// candidate publishes again under the new record. The revocation path itself (TASK-064) closes the
|
||||
// stored publication and revokes the contact grants in its own transaction. A closing sent over a
|
||||
// stored publication whose C2 was revoked is a real change: it stores the closing, records
|
||||
// `publication_closed`, and revokes the grants as any closing does. Publishing, like every visibility
|
||||
// change, needs a verified email (a usecase requirement; the unverified account cleanup deletes only
|
||||
// accounts without such records). Publishing never adds a field that the body did not name, and a new
|
||||
// `CardField` value is never published for a candidate who did not choose it.
|
||||
// other conflict, and changes nothing: the client gives C2 first (planned in the consent settings) and
|
||||
// then publishes. The server takes the C2 record under a share lock in the transaction that writes the
|
||||
// publication, so a revocation that races with a publication either commits first (the publication is
|
||||
// refused) or closes the card right after. A revocation of C2 closes the card at once, because `state`
|
||||
// is computed from the unrevoked record; a later C2 grant never reopens it, and the candidate
|
||||
// publishes again under the new record. The revocation path itself closes the stored publication and
|
||||
// revokes the contact grants in its own transaction. A closing sent over a stored publication whose C2
|
||||
// was revoked is a real change: it stores the closing, records `publication_closed`, and revokes the
|
||||
// grants as any closing does. Publishing, like every visibility change, needs a verified email (a
|
||||
// usecase requirement; the unverified account cleanup deletes only accounts without such records).
|
||||
// Publishing never adds a field that the body did not name, and a new `CardField` value is never
|
||||
// published for a candidate who did not choose it.
|
||||
//
|
||||
// The field set contains only the groups of `CardField`. The full name, contacts, and the lowest
|
||||
// salary have no value there, so no body can publish them. Only values that the candidate confirmed
|
||||
@@ -11662,11 +11661,11 @@ func (s *Server) handleUpdateOrganizationRequest(args [1]string, argsEscaped boo
|
||||
// candidate's minimum for the offered formats, and switching formats or the basis would otherwise
|
||||
// probe the minimum for free. Such a change counts against the limit shared by the organization with
|
||||
// needs and other drafts, at most three settings a day, and against the withheld counter, which
|
||||
// withholds `salary_fit` for seven days from the fifth setting within seven days (PRD FR13, planned in
|
||||
// TASK-211; see InvitationSalaryFit). Over the limit the server answers 429 with Retry-After and
|
||||
// changes nothing. A change that keeps the range, the basis, and the formats does not count. The
|
||||
// operation follows the convention of UpdateOrganizationNeed: no Idempotency-Key, and a body that
|
||||
// changes nothing answers 200.
|
||||
// withholds `salary_fit` for seven days from the fifth setting within seven days (PRD FR13,
|
||||
// enforcement planned; see InvitationSalaryFit). Over the limit the server answers 429 with
|
||||
// Retry-After and changes nothing. A change that keeps the range, the basis, and the formats does not
|
||||
// count. The operation follows the convention of UpdateOrganizationNeed: no Idempotency-Key, and a
|
||||
// body that changes nothing answers 200.
|
||||
//
|
||||
// Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400),
|
||||
// account scenario (403 forbidden for a candidate), membership (404 not_found) and role (403
|
||||
@@ -11955,10 +11954,10 @@ func (s *Server) handleUpdateOrganizationInvitationRequest(args [2]string, argsE
|
||||
//
|
||||
// Salary limit: the recommendations aggregate candidates' minimums against the upper bound, so setting
|
||||
// or changing a confirmed salary range counts against a limit shared by the whole organization, every
|
||||
// member and every need, together with ranges set on creation: at most three a day (PRD FR13, planned
|
||||
// in TASK-211). Over the limit the server answers 429 with Retry-After and changes nothing. After five
|
||||
// settings within seven days the money component is `withheld` for seven days. Repeated range changes
|
||||
// also feed the private risk signals of TASK-319.
|
||||
// member and every need, together with ranges set on creation: at most three a day (PRD FR13,
|
||||
// enforcement planned). Over the limit the server answers 429 with Retry-After and changes nothing.
|
||||
// After five settings within seven days the money component is `withheld` for seven days. Repeated
|
||||
// range changes also feed the private organization risk signals.
|
||||
//
|
||||
// Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400),
|
||||
// account scenario (403 forbidden for a candidate), membership (404 not_found) and role (403
|
||||
@@ -12210,7 +12209,7 @@ func (s *Server) handleUpdateOrganizationNeedRequest(args [2]string, argsEscaped
|
||||
// Requires the session cookie of a candidate account, the CSRF token of that session in X-CSRF-Token,
|
||||
// and an allowed Origin. The candidate comes from the session. The request has no body.
|
||||
//
|
||||
// The view transition of PRD FR12 (TASK-200) is an explicit command, so reading the invitation with
|
||||
// The view transition of PRD FR12 is an explicit command, so reading the invitation with
|
||||
// GetMyInvitation stays free of side effects. The client sends it when the candidate opens the terms
|
||||
// screen. For a `delivered` invitation the server moves it to `viewed`, sets `viewed_at`, advances
|
||||
// `version`, and keeps the deadline. In any other state, including `viewed`, `accepted`, and the
|
||||
|
||||
Reference in new issue
Block a user