Skip to content

Add Slackbot slash command endpoint#223

Merged
ewlarson merged 2 commits into
developfrom
feature/slackbot
May 12, 2026
Merged

Add Slackbot slash command endpoint#223
ewlarson merged 2 commits into
developfrom
feature/slackbot

Conversation

@ewlarson
Copy link
Copy Markdown
Contributor

@ewlarson ewlarson commented May 12, 2026

Summary

Adds a first-class BTAA Geoportal Slackbot slash-command endpoint backed by the existing API search service.

Changes

  • Adds POST /api/v1/slack/commands with Slack request signature verification.
  • Adds GET /api/v1/slack status/configuration info.
  • Implements command parsing for help, explicit search, and bare-query search commands.
  • Formats search results as ephemeral Slack Block Kit responses with resource links and a full-search button.
  • Wires Kamal env support for SLACK_SIGNING_SECRET and SLACK_BOT_COMMAND.
  • Adds Slackbot setup docs and focused service/API tests.

Validation

  • backend/.venv/bin/ruff check backend/app/services/slackbot_service.py backend/app/api/v1/endpoint_modules/slack.py backend/tests/services/test_slackbot_service.py backend/tests/api/v1/test_slack_endpoints.py backend/app/api/v1/endpoints.py
  • git diff --check
  • Direct signed-service smoke check passed.
  • Signed endpoint smoke check passed with APP_ENV=test and rate limiting disabled.

Full targeted pytest could not run locally because the backend pytest harness requires the ParadeDB test service, and docker was not available on this shell PATH.

ewlarson added 2 commits May 12, 2026 09:01
- Updated `docs/scripts.md` to include repository-level script conventions, recommended entry points, Kamal command patterns, and a script maintenance checklist.
- Modified `TurnstileGate` component tests to check for the appearance attribute in the mocked Turnstile component.
- Changed the `TurnstileGate` component to set the appearance option to 'always'.
- Expanded API documentation in `endpoints.md` to include new endpoints for static map assets and resource geometry.
- Updated parameter documentation in `parameters.md` to reflect changes in resource ID handling and added a new parameter for static map assets.
@ewlarson ewlarson merged commit 421cd7b into develop May 12, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant