Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registry updates #49

Merged
merged 2 commits into from
Feb 17, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions services/registry/developer-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,12 @@ options ["value1", "value2", "value3"]
```

<Note>
Note: only `title` and `type` are mandatory to define a setting. In this example `example-name` is the key your business logic
will use to get its value from the `settings` dict.
Note: only `title` and `type` are mandatory to define a setting.
In this case, `example-name` is the key your business logic will use to get its value from the `settings` dict.

Also note: even if defined as number or bool, all settings are treated as strings when you receive them in the
business logic. For now, it's your responsibility to parse them into the correct type. In the future, the WIT
definition will handle types automatically as well.
</Note>

### Step 3: Build and test locally
Expand Down Expand Up @@ -303,6 +307,11 @@ Use the test command to run your local Wasm file with a sample event and provide
If no `--event-type` is provided, it will run the Wasm file with all event types (page, track, and user).
This helps ensure your component behaves as expected from the proxy's perspective, in addition to your unit tests.

<Note>
Note: the test command needs a local Wasm file, so don't forget to re-compile your component to Wasm after
updating your code.
</Note>

#### Test events

Test events represent the typical structure of an Edgee event.
Expand Down
Loading