Skip to content

Commit

Permalink
fix: env drop event data.name + /api/admin/events docs (#1662)
Browse files Browse the repository at this point in the history
* docs: add all /events endpoints and query params

* docs: events page skeleton structure

* docs: correct description of event payloads

* docs: add table with event properties.

* docs: remove duplicate table.

* docs: sort property table

* docs: more work on adding events: feature events

* docs: add examples for most feature events

Still missing are: events that require imports, and
feature-project-change

* docs: scaffold out all events descriptions

* docs: normalize casing

* docs: add brief descriptions to strategy and context events

* docs: Add remaining non-import event descriptions and examples

* docs: add code sample annotations for all example events.

* docs: remove all references to myself

* docs: change "toggle" -> "feature", adjust headings

The headings aren't semantic for this doc yet. We'll need to create a
new document for this.

* docs: update event type description table

* docs: change header level of event type section

* docs: add details around feature-project-change event

* docs: add import type events

* docs: use a better `createdBy` name

* docs: "sort" events so that they're in a consistent order.

* docs: remove reference to ID in addon-config-created event

* fix: drop-environments data.name all-projects -> all-environments

This is probably a bug. Should be double checked.

* docs: clarify that `data.name` is always `all-x` on drop events

* Apply suggestions from code review

Co-authored-by: sighphyre <liquidwicked64@gmail.com>

Co-authored-by: sighphyre <liquidwicked64@gmail.com>
  • Loading branch information
thomasheartman and sighphyre committed Jun 7, 2022
1 parent ee35c7a commit fa74f81
Show file tree
Hide file tree
Showing 2 changed files with 1,588 additions and 195 deletions.
2 changes: 1 addition & 1 deletion src/lib/services/state-service.ts
Expand Up @@ -417,7 +417,7 @@ export default class StateService {
await this.eventStore.store({
type: DROP_ENVIRONMENTS,
createdBy: userName,
data: { name: 'all-projects' },
data: { name: 'all-environments' },
});
}
const envsImport = environments.filter((env) =>
Expand Down

0 comments on commit fa74f81

Please sign in to comment.