Repository navigation
feat(imports): make and revoke import webhooks on the namespace page - #187
Merged
Merged
Conversation
Owners get an "Import webhooks" section: make one (its token and ready-to-run curl examples shown once), pause or resume it, give it a new token, or delete it. Each row shows the token's last four characters and what it imported. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012n4GFU7rnEd6r6S44JXnYa
Owner
Author
|
FastAPI (embedded SurrealDB) failed on Cause: with # app/domain/syslog.py, Listener.__init__
for attempt in range(5 if port == 0 else 1):
self.udp = UdpServer((host, port), Udp)
self.port = self.udp.server_address[1]
try:
self.tcp = TcpServer((host, self.port), Tcp) if tcp else None
break
except OSError:
self.udp.server_close()
if attempt == 4 or port != 0:
raiseI've re-run the failed job once. Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Adeel · project thread
Description
Before: import webhooks (#155) existed only in the API, so making a token meant calling it by hand.
After: a namespace's page (Admin → Namespaces → a namespace) has an Import webhooks section for owners. "New webhook" asks for a name and then shows the push address, the token (once) and copy-ready curl examples for a file and a link. Each hook row shows its token's last four characters and how much it imported, with Pause/Resume, New token and Delete. Non-owners see the section with the button disabled and the reason.
How:
components/imports/import-hooks.tsx, using the generatedImportHooksclient; one line on the namespace page.Motivation and Context
Per-namespace tokens that can be created and revoked in the web UI, as asked for alongside the import webhook.
Types of changes
!in the title)Checklist:
__tests__/import-hooks.test.tsx).docs/accordingly.## UnreleasedinCHANGELOG.md.🤖 Generated with Claude Code
https://claude.ai/code/session_012n4GFU7rnEd6r6S44JXnYa
Generated by Claude Code