Commit graph

241 commits

Author SHA1 Message Date
Yussif Mohammed
42e0c7bc92 fix github sync table 2025-12-25 16:20:39 +00:00
Yussif Mohammed
2751b3d995 feat: towards github dashboard sync 2025-12-24 23:26:49 +00:00
Yussif Mohammed
cc51fda8a6
Alerts view & Error details page (#225)
* towards supporting teams in projects.

* Auto-format code with fourmolu

* improve team list

team view side page, alerts and dashbaord next

yeah well

validation checks and fixes

tiny details improvments

prepare endpoints for testing

Auto-format code with fourmolu

towards tests

Auto-format code with fourmolu

rm monoscope-test

more tests cases

Auto-format code with fourmolu

alerts page improvements bug fixes and teams link

Auto-format code with fourmolu

feat: alerts section, teams.

send notifications

Auto-format code with fourmolu

fix errs and slack install

Auto-format code with fourmolu

towards table component

Auto-format code with fourmolu

dashbaord bulk actions delete

dashboards with teams

team dashboard

Auto-format code with fourmolu

feat: teams bulk actions delete

Auto-format code with fourmolu

feat: add title field & teams to dashboard modal

Auto-format code with fourmolu

* remove stack files and configure hie.yaml for better IDE support

Auto-format code with fourmolu

fix and passing tests

Auto-format code with fourmolu

add dashboards spec

Auto-format code with fourmolu

notifications templates

query viz and alert notifications

Auto-format code with fourmolu

alert config stuff

fixes and towards issue detail page

Auto-format code with fourmolu

Reorganize project structure

Move config files to config/ directory (tailwind.config.js, workbox-config.js, weeder.toml). Move documentation to docs/ (DEVELOPMENT.md, DOCKER_COMPOSE_README.md). Update all references in Dockerfile, Makefile, tailwind.css, and documentation.

Fix CI disk space exhaustion by cleaning up unnecessary files and build artifacts

Optimize CI caching strategy to reduce disk usage

Use separate caches per test suite and cache only essential build
artifacts instead of entire dist-newstyle directory. This reduces
disk usage while maintaining fast compilation through effective caching.

Fix CSS build in deployment by using correct Tailwind v4 CLI

The project uses Tailwind CSS v4 syntax (@import, @source, @plugin
directives) but the build commands were using the old v3 CLI which
doesn't process v4 syntax correctly, causing CSS changes to not appear
in deployed builds.

Updated Dockerfile and CI workflows to use @tailwindcss/cli instead of
the legacy tailwindcss command, and removed the obsolete -c config flag
since v4 uses @config directive in the CSS file.

Use npx tailwindcss instead of @tailwindcss/cli for v4 compatibility

The tailwindcss package (v4.1.13) in devDependencies is the correct CLI
for Tailwind v4. Using @tailwindcss/cli was unnecessarily specific and
may have caused issues in the Docker build environment.

This ensures the CSS with all custom utilities (surface-raised, etc.)
builds correctly in production.

Cherry pick files (#232)

* cherry pick files

* Auto-format code with fourmolu

* add more files

* Auto-format code with fourmolu

* finx undefined var

* review changes

* Auto-format code with fourmolu

* discord channel' type rename

* Auto-format code with fourmolu

* claude rec fixes

* Auto-format code with fourmolu

* fix notification typo

* Auto-format code with fourmolu

* discord get channel log error

* fix typo

* rm reswap related code from System.Types.hs

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Anthony Alaribe <anthonyalaribe@gmail.com>

Teams rebased (#233)

* towards supporting teams in projects.

* Auto-format code with fourmolu

* fix htmx json encoder extension

* improve team list

* team view side page, alerts and dashbaord next

* yeah well

* validation checks and fixes

* tiny details improvments

* prepare endpoints for testing

* Auto-format code with fourmolu

* towards tests

* Auto-format code with fourmolu

* rm monoscope-test

* fix alert creation

* more tests cases

* Auto-format code with fourmolu

* alerts page improvements bug fixes and teams link

* Auto-format code with fourmolu

* feat: alerts section, teams.

* send notifications

* Auto-format code with fourmolu

* fix errs and slack install

* Auto-format code with fourmolu

* add teams column to dashboards table

* towards table component

* Auto-format code with fourmolu

* dashbaord bulk actions delete

* dashboards with teams

* team dashboard

* Auto-format code with fourmolu

* fix table

* feat: teams bulk actions delete

* Auto-format code with fourmolu

* feat: add title field & teams to dashboard modal

* Auto-format code with fourmolu

* remove stack files and configure hie.yaml for better IDE support

* Auto-format code with fourmolu

* fix and passing tests

* Auto-format code with fourmolu

* add more tests

* add dashboards spec

* Auto-format code with fourmolu

* fix pull request workflow

* fix: review change requests

* Auto-format code with fourmolu

* feat: tagify consolidation

* Auto-format code with fourmolu

* updates

* simplifications and other changes

* background changes and fixes

* Auto-format code with fourmolu

* package yaml

* Auto-format code with fourmolu

* fix typo

* towards supporting teams in projects.

* Auto-format code with fourmolu

* improve team list

* team view side page, alerts and dashbaord next

* yeah well

* validation checks and fixes

* tiny details improvments

* prepare endpoints for testing

* Auto-format code with fourmolu

* towards tests

* Auto-format code with fourmolu

* rm monoscope-test

* more tests cases

* Auto-format code with fourmolu

* alerts page improvements bug fixes and teams link

* Auto-format code with fourmolu

* feat: alerts section, teams.

* send notifications

* Auto-format code with fourmolu

* fix errs and slack install

* Auto-format code with fourmolu

* add teams column to dashboards table

* towards table component

* Auto-format code with fourmolu

* dashbaord bulk actions delete

* dashboards with teams

* team dashboard

* Auto-format code with fourmolu

* feat: teams bulk actions delete

* Auto-format code with fourmolu

* feat: add title field & teams to dashboard modal

* Auto-format code with fourmolu

* remove stack files and configure hie.yaml for better IDE support

* Auto-format code with fourmolu

* fix and passing tests

* Auto-format code with fourmolu

* add more tests

* add dashboards spec

* Auto-format code with fourmolu

* fix: review change requests

* Auto-format code with fourmolu

* feat: tagify consolidation

* Auto-format code with fourmolu

* updates

* simplifications and other changes

* background changes and fixes

* Auto-format code with fourmolu

* package yaml

* Auto-format code with fourmolu

* Migrate to master's Table API

  - Update dashboards and teams tables to use new column-based API
  - Replace ItemsList.ItemsRows with Table.TableRows
  - Add missing validateTeamDetails function
  - Fix import conflicts

* Migrate to master's Table API and fix migration idempotency

- Update dashboards and teams tables to use new column-based API
- Replace ItemsList.ItemsRows with Table.TableRows
- Add missing validateTeamDetails function
- Fix import conflicts (Wreq.header ambiguity)
- Add IF NOT EXISTS to index creation in teams migration

* Add frosted glass backdrop to modals

- Add backdrop-filter blur effect to .modal-backdrop class
- Applies 8px blur for frosted glass effect
- Includes webkit prefix for browser compatibility

* Remove padding from table container

- Remove px-6, pt-4, and pb-16 from containerClasses
- Table now renders edge-to-edge without padding

* Add padding to non-settings page content

- Remove padding from Table component's default containerClasses
- Add px-6 pt-4 pb-16 wrapper for non-settings pages in BodyWrapper
- Settings pages (Teams, etc.) remain without extra padding

* Remove duplicate padding from dashboards list page

- Remove pb-2 px-6 pt-8 from itemsListPage div
- Padding now comes from BodyWrapper parent wrapper
- Avoids double padding on dashboards list

* Align dashboard button and table checkbox with page header

* Fix double padding issue with standardized table padding system

- Remove global padding wrapper from BodyWrapper to fix double padding
- Add addPadding config option to Table component
- Update table pages to use addPadding: Dashboards, API Catalog, Issues, Monitors
- Standardize all table padding to px-6 pt-4 pb-2
- Update Monitors page section padding to match standard

* fix tables and compilation

* Auto-format code with fourmolu

* fix dulicate line

* Auto-format code with fourmolu

* fix build

* Refactor FromJSON instances to use deriving strategies

- Use deriving via with DAE.Rename for field name transformations

- Use deriving via with DAE.StripSuffix for simple underscore removal

- Extract SlackEventPayload constructors into separate record types

- Simplify TeamForm to use deriving anyclass for internal API

- Remove unused imports

Code reduction: ~80 lines of manual JSON parsing boilerplate eliminated

* Auto-format code with fourmolu

* Add team validation and permission checks

- Add admin-only restriction for team create/update
- Validate team members are project members
- Add email format validation for notification emails
- Add length limits to team name and handle
- Verify teams exist before adding to dashboards
- Extract dispatchTeamNotifications helper in BackgroundJobs
- Use TeamDetails record to simplify createTeam/updateTeam APIs
- Handle duplicate team handles with ON CONFLICT DO NOTHING

* Auto-format code with fourmolu

* Refactor teams feature with comprehensive improvements

Code Quality & Type Safety:

- Refactor createTeam/updateTeam to use TeamDetails record type

- Add compile-time safety with NonEmpty for softDeleteProjectMembers

- Standardize SQL array syntax (lowercase uuid[], consistent spacing)

- Add phone_numbers support to all team types and queries

Performance Optimizations:

- Optimize getTeamsVM/getTeamByHandle with LEFT JOIN + array_agg

- Use for_ instead of explicit null checks

Error Handling & Observability:

- Add logging for missing/deleted teams in monitor notifications

- Improve error handling for addTeamsToDashboards

- Add graceful fallback when configured teams are deleted

Code Cleanup:

- Extract dispatchTeamNotifications helper function

- Remove redundant project query

- Use idiomatic Haskell patterns

* Auto-format code with fourmolu

* Fix variable shadowing in email validation

* Refactor for code succinctness

- Simplify NonEmpty to Vector conversion (remove redundant toList)

- Extract handleQueryMonitorThreshold into focused helper functions

- Add logMissingTeams for team logging

- Add createAndInsertIssue for issue creation

- Add calculateThreshold for threshold calculation

- Add buildMonitorAlert for alert construction

- Add sendNotifications for notification dispatch

- Add sendFallbackNotifications for fallback handling

* Auto-format code with fourmolu

---------

Co-authored-by: Yussif Mohammed <yousiph77@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

towards supporting teams in projects.

Auto-format code with fourmolu

improve team list

validation checks and fixes

tiny details improvments

Auto-format code with fourmolu

towards tests

Auto-format code with fourmolu

more tests cases

Auto-format code with fourmolu

* alerts page improvements bug fixes and teams link

Auto-format code with fourmolu

feat: alerts section, teams.

send notifications

Auto-format code with fourmolu

fix errs and slack install

Auto-format code with fourmolu

towards table component

Auto-format code with fourmolu

dashbaord bulk actions delete

dashboards with teams

Auto-format code with fourmolu

feat: teams bulk actions delete

Auto-format code with fourmolu

feat: add title field & teams to dashboard modal

Auto-format code with fourmolu

remove stack files and configure hie.yaml for better IDE support

Auto-format code with fourmolu

fix and passing tests

Auto-format code with fourmolu

add dashboards spec

Auto-format code with fourmolu

alert config stuff

fixes and towards issue detail page

rmv duplicate declarations

Auto-format code with fourmolu

fix resizer

Auto-format code with fourmolu

make project compile/fix errors

* Auto-format code with fourmolu

feat: use log-list virtual table for monitor history tab

Auto-format code with fourmolu

fix issue detail tabs

Auto-format code with fourmolu

clean up unused imports

Auto-format code with fourmolu

parameterized trace/span sql queries

fix unkwon stack typo

more unused imports cleanup

Auto-format code with fourmolu

remove commented logs

Rebase onto master, resolve conflicts with master changes

fix tests after recent changes to alerts view

fix tests after changing ManageMembers handlers to return ProjectId

remove monoscope-test

towards fixing tests

Auto-format code with fourmolu

fix: sort starred dashboards first and add chart padding

- Dashboard list now always shows starred/favorited items at the top regardless of the selected sort option (newest, oldest, A-Z, etc.)

- Added p-2 padding to widget chart container to prevent bleeding edges

fix: exclude p-2 padding for timeseries_stat widgets

fix: dashboard variable tagify inputs not initializing correctly

- Update createTagify to accept both selector strings and DOM elements

- Wrap dashboard variable tagify init in DOMContentLoaded event

- Remove overflow-hidden from variable fieldset to allow dropdown display

fix: remove unnecessary border wrapper from table component

Auto-format code with fourmolu

towards fixing integration tests

Auto-format code with fourmolu

* fix more errors

* Auto-format code with fourmolu

* claude req fixes

* Auto-format code with fourmolu

* fix table

* Auto-format code with fourmolu

* bring back removed page due to rebase

* Auto-format code with fourmolu

* rm unused imports

* fix failing delim queries in BackgroundJobs.hs

* Auto-format code with fourmolu

* fix build after rebase

* Auto-format code with fourmolu

* test final fix

* rm log attention

* add index for first_trace_id and recent_trace_id in errors table

* fix index creation in 0019_add_trace_id.sql

* remove concurrently index

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-23 17:54:20 +01:00
Anthony Alaribe
9521695299
Teams rebased (#233)
* towards supporting teams in projects.

* Auto-format code with fourmolu

* fix htmx json encoder extension

* improve team list

* team view side page, alerts and dashbaord next

* yeah well

* validation checks and fixes

* tiny details improvments

* prepare endpoints for testing

* Auto-format code with fourmolu

* towards tests

* Auto-format code with fourmolu

* rm monoscope-test

* fix alert creation

* more tests cases

* Auto-format code with fourmolu

* alerts page improvements bug fixes and teams link

* Auto-format code with fourmolu

* feat: alerts section, teams.

* send notifications

* Auto-format code with fourmolu

* fix errs and slack install

* Auto-format code with fourmolu

* add teams column to dashboards table

* towards table component

* Auto-format code with fourmolu

* dashbaord bulk actions delete

* dashboards with teams

* team dashboard

* Auto-format code with fourmolu

* fix table

* feat: teams bulk actions delete

* Auto-format code with fourmolu

* feat: add title field & teams to dashboard modal

* Auto-format code with fourmolu

* remove stack files and configure hie.yaml for better IDE support

* Auto-format code with fourmolu

* fix and passing tests

* Auto-format code with fourmolu

* add more tests

* add dashboards spec

* Auto-format code with fourmolu

* fix pull request workflow

* fix: review change requests

* Auto-format code with fourmolu

* feat: tagify consolidation

* Auto-format code with fourmolu

* updates

* simplifications and other changes

* background changes and fixes

* Auto-format code with fourmolu

* package yaml

* Auto-format code with fourmolu

* fix typo

* towards supporting teams in projects.

* Auto-format code with fourmolu

* improve team list

* team view side page, alerts and dashbaord next

* yeah well

* validation checks and fixes

* tiny details improvments

* prepare endpoints for testing

* Auto-format code with fourmolu

* towards tests

* Auto-format code with fourmolu

* rm monoscope-test

* more tests cases

* Auto-format code with fourmolu

* alerts page improvements bug fixes and teams link

* Auto-format code with fourmolu

* feat: alerts section, teams.

* send notifications

* Auto-format code with fourmolu

* fix errs and slack install

* Auto-format code with fourmolu

* add teams column to dashboards table

* towards table component

* Auto-format code with fourmolu

* dashbaord bulk actions delete

* dashboards with teams

* team dashboard

* Auto-format code with fourmolu

* feat: teams bulk actions delete

* Auto-format code with fourmolu

* feat: add title field & teams to dashboard modal

* Auto-format code with fourmolu

* remove stack files and configure hie.yaml for better IDE support

* Auto-format code with fourmolu

* fix and passing tests

* Auto-format code with fourmolu

* add more tests

* add dashboards spec

* Auto-format code with fourmolu

* fix: review change requests

* Auto-format code with fourmolu

* feat: tagify consolidation

* Auto-format code with fourmolu

* updates

* simplifications and other changes

* background changes and fixes

* Auto-format code with fourmolu

* package yaml

* Auto-format code with fourmolu

* Migrate to master's Table API

  - Update dashboards and teams tables to use new column-based API
  - Replace ItemsList.ItemsRows with Table.TableRows
  - Add missing validateTeamDetails function
  - Fix import conflicts

* Migrate to master's Table API and fix migration idempotency

- Update dashboards and teams tables to use new column-based API
- Replace ItemsList.ItemsRows with Table.TableRows
- Add missing validateTeamDetails function
- Fix import conflicts (Wreq.header ambiguity)
- Add IF NOT EXISTS to index creation in teams migration

* Add frosted glass backdrop to modals

- Add backdrop-filter blur effect to .modal-backdrop class
- Applies 8px blur for frosted glass effect
- Includes webkit prefix for browser compatibility

* Remove padding from table container

- Remove px-6, pt-4, and pb-16 from containerClasses
- Table now renders edge-to-edge without padding

* Add padding to non-settings page content

- Remove padding from Table component's default containerClasses
- Add px-6 pt-4 pb-16 wrapper for non-settings pages in BodyWrapper
- Settings pages (Teams, etc.) remain without extra padding

* Remove duplicate padding from dashboards list page

- Remove pb-2 px-6 pt-8 from itemsListPage div
- Padding now comes from BodyWrapper parent wrapper
- Avoids double padding on dashboards list

* Align dashboard button and table checkbox with page header

* Fix double padding issue with standardized table padding system

- Remove global padding wrapper from BodyWrapper to fix double padding
- Add addPadding config option to Table component
- Update table pages to use addPadding: Dashboards, API Catalog, Issues, Monitors
- Standardize all table padding to px-6 pt-4 pb-2
- Update Monitors page section padding to match standard

* fix tables and compilation

* Auto-format code with fourmolu

* fix dulicate line

* Auto-format code with fourmolu

* fix build

* Refactor FromJSON instances to use deriving strategies

- Use deriving via with DAE.Rename for field name transformations

- Use deriving via with DAE.StripSuffix for simple underscore removal

- Extract SlackEventPayload constructors into separate record types

- Simplify TeamForm to use deriving anyclass for internal API

- Remove unused imports

Code reduction: ~80 lines of manual JSON parsing boilerplate eliminated

* Auto-format code with fourmolu

* Add team validation and permission checks

- Add admin-only restriction for team create/update
- Validate team members are project members
- Add email format validation for notification emails
- Add length limits to team name and handle
- Verify teams exist before adding to dashboards
- Extract dispatchTeamNotifications helper in BackgroundJobs
- Use TeamDetails record to simplify createTeam/updateTeam APIs
- Handle duplicate team handles with ON CONFLICT DO NOTHING

* Auto-format code with fourmolu

* Refactor teams feature with comprehensive improvements

Code Quality & Type Safety:

- Refactor createTeam/updateTeam to use TeamDetails record type

- Add compile-time safety with NonEmpty for softDeleteProjectMembers

- Standardize SQL array syntax (lowercase uuid[], consistent spacing)

- Add phone_numbers support to all team types and queries

Performance Optimizations:

- Optimize getTeamsVM/getTeamByHandle with LEFT JOIN + array_agg

- Use for_ instead of explicit null checks

Error Handling & Observability:

- Add logging for missing/deleted teams in monitor notifications

- Improve error handling for addTeamsToDashboards

- Add graceful fallback when configured teams are deleted

Code Cleanup:

- Extract dispatchTeamNotifications helper function

- Remove redundant project query

- Use idiomatic Haskell patterns

* Auto-format code with fourmolu

* Fix variable shadowing in email validation

* Refactor for code succinctness

- Simplify NonEmpty to Vector conversion (remove redundant toList)

- Extract handleQueryMonitorThreshold into focused helper functions

- Add logMissingTeams for team logging

- Add createAndInsertIssue for issue creation

- Add calculateThreshold for threshold calculation

- Add buildMonitorAlert for alert construction

- Add sendNotifications for notification dispatch

- Add sendFallbackNotifications for fallback handling

* Auto-format code with fourmolu

---------

Co-authored-by: Yussif Mohammed <yousiph77@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-18 23:38:00 +01:00
Anthony Alaribe
638df4392b Add visualization type support for alerts
- Add visualization_type column to query_monitors table

- Store and load visualization type when creating/editing alerts

- Update alert edit links to include query and viz_type parameters

- Fix alert form POST endpoint path (/p/<pid>/monitors/alerts)

- Fix visualizationTabs_ to respect vizTypeM when in alert mode

- Add getVizType() JS helper function
2025-11-27 23:29:55 +01:00
Anthony Alaribe
ad12dbf927 Fix issues table constraint to allow multiple query alerts
The previous unique constraint was too restrictive, preventing multiple
query alert issues for the same project and preventing new api_change
issues after acknowledging old ones.

Changes:
- Add migration to drop overly restrictive table-level constraint
- Update insertIssue to use partial unique index instead
- Partial index only applies to open api_change issues per endpoint

The partial unique index unique_open_api_change_issue_per_endpoint
already enforces the correct business logic: only one open (unacknowledged,
unarchived) api_change issue per (project_id, endpoint_hash).
2025-11-15 05:59:08 +00:00
Yussif Mohammed
60aa4ae653
New Reports UI (#207)
* checkpoint

* span overview checkpoint

* reports checkpoint, slow queries

* empty state

* auto load first report

* format

* fetch and save neccesary chart data for report

* feat: issues breakdown

* touches

* issues id

* format
2025-11-13 07:45:20 +00:00
Anthony Alaribe
ed97da7594 fixes for integration tests 2025-10-18 02:17:33 +02:00
Yussif Mohammed
49c6e6f9aa generate patterns for summary 2025-10-12 05:58:08 +00:00
Yussif Mohammed
8cb6acc723 configure endoins and error alerts 2025-10-02 10:40:45 +00:00
Yussif Mohammed
481e206117 fix log pattern extraction memory usage 2025-09-29 10:12:42 +00:00
Yussif Mohammed
420f1a3ceb
Log patterns (#200)
* df

* feat: drain implementation and background job for log pattern extraction

* feat: add log patterns visualization

* df

* feat: drain implementation and background job for log pattern extraction

* feat: add log patterns visualization

* fix: chart toggle visibility for logs and patterns

* bg for log patterns

* schedule 15 minute span pattern processing

* remove redundant imports

* remove redundant imports

* preload extracted patterns for higher accuracy

* extract for past hour instead of 15 minutes chunks

* reloading of pattern list

* fmt

* drain improvements

* drain improvements

* perf improve log pattern extraction

* reduce log extraction interval to 10 minutes
2025-09-27 10:58:23 +00:00
Anthony Alaribe
4b4ed0252a rename project to monoscope 2025-09-14 19:55:26 +02:00
Yussif Mohammed
783d8919e3 add error column to otel logs and spans table 2025-09-06 18:28:18 +00:00
Yussif Mohammed
36c62259a7 drop views 2025-09-01 14:59:02 +00:00
Yussif Mohammed
1d71adcfc2 make apicatalog a materialized view 2025-09-01 11:29:52 +00:00
Yussif Mohammed
f8049882a6 fix endpoints list page 2025-09-01 10:03:39 +00:00
Yussif Mohammed
ccf33c6846 remove host attribute as column 2025-09-01 09:27:21 +00:00
Yussif Mohammed
dbb1e79de6
Remove testkit (#189)
* remove teskit relative stuff

* remove swagger

* remove spec for swagger

* ui swagger remove spec for swaggerremove swagger

* towards fixing api catalog

* improve apit catalog performance

* towards few endpoints list page breaking

towards actually working
2025-08-31 21:33:04 +00:00
Yussif Mohammed
151b60fd5e
Remove testkit (#188)
* remove teskit relative stuff

* remove swagger

* remove spec for swagger

* ui swagger remove spec for swaggerremove swagger

* towards fixing api catalog

* improve apit catalog performance
2025-08-31 21:04:39 +00:00
Yussif Mohammed
5d56beca17 increase retention policy to 30 days 2025-08-30 20:08:52 +00:00
Yussif Mohammed
4f99d6f087 fix http span processing background job 2025-08-26 23:39:59 +00:00
Yussif Mohammed
0f12b628c9 fix changes and errors page 2025-08-26 15:07:46 +00:00
Yussif Mohammed
3c7daac266 fix migration files 2025-08-25 21:47:57 +00:00
Anthony Alaribe
3368be49c5 extend all jsonb columns in otel_logs_and_spans records, so we can decode both from timescaledb and timefusion 2025-08-20 00:25:13 +02:00
dawkaka
4cebbf2a5f save s3 bucket credentials 2025-08-09 12:09:00 +00:00
Anthony Alaribe
1b44a2451c
Issues v3 (#180)
* checkpoint catch anomaly list

* checkpoint

* feat: Implement new Issues format with anomaly grouping

- Add support for grouping multiple anomalies under a single issue per endpoint
- Add anomaly_hashes and endpoint_hash columns to issues table
- Update Issue and IssueL data models with new fields
- Implement logic to check for existing open issues before creating new ones
- Update existing issues with new anomaly data instead of creating duplicates
- Add functions: findOpenIssueForEndpoint, updateIssueWithNewAnomaly, mergeIssues
- Update acknowledgment logic to cascade to all tracked anomalies
- Create database migration for new columns and indexes

This change reduces clutter by consolidating all anomalies for an endpoint into a single issue that tracks the complete change history.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: Resolve compilation errors in anomaly grouping implementation

- Fix ToRow instance issue by wrapping aids parameter with Only
- Fix ZonedTime comparison by using zonedTimeToUTC
- Add missing import for zonedTimeToUTC

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* feat: Restore mock issue data with toggle for real database queries

- Add back the comprehensive mock issue data that was accidentally removed
- Include new anomaly grouping fields (anomalyHashes, endpointHash) in mock
- Add useMockData toggle variable to switch between mock and real data
- Fix imports and indentation for proper compilation
- Set useMockData to True by default for UI development

The mock data demonstrates the new Issues format with:
- Multiple anomalies grouped under one issue
- Breaking and incremental changes
- Detailed payload changes with before/after examples
- Enhanced UI fields for better visualization

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: Correct type mismatch in groupAnomaliesByEndpoint function

- Fix V.groupBy which returns [V.Vector a] not V.Vector (V.Vector a)
- Convert list result back to Vector using V.fromList
- Apply mergeIssues to each group after converting to Vector

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* add more mock issues as examples

* checkpoint

* checkpoint before background job update.

* checkpoint, support just 3 issue types

* checkpoint

* mock data only

* revert the stats design

* ok issue mock data render

* checkpoint since it runs

* force a default mock data issues table for all users just to aid with the demos

* remove anomaly grouping spec

* hpack

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-07-10 00:59:09 +02:00
dawkaka
ddb664c1ec feat: add whatsapp notification channel 2025-07-07 20:25:51 +00:00
Anthony Alaribe
de40579274 checkpoint. iterating on the api catalog logic and testing it 2025-07-07 00:21:04 +02:00
Anthony Alaribe
c33a152cba unit tests pass. checkpoint towards passing integration tests 2025-07-03 15:15:11 +02:00
Anthony Alaribe
f5ddc11f5f unit tests pass. checkpoint towards passing integration tests 2025-07-03 15:15:11 +02:00
Anthony Alaribe
2b5d882a87
Summary column (#178)
* refactors: consolidate logic and remove unused or unneeded files. TODO: include summary column to simplify query engine and remove need for adding default columns to query

* checkpoint

* helpers and dyntax

* add summary

* add onzoom

* otlpserver

* telemetry inserts and query should include summary

* checkpoint

* checkpoint

* render table based on preaggregated summary table
2025-06-28 17:19:38 +02:00
dawkaka
4e88dee1a6 checkpoint towards image to slack 2025-06-18 10:18:54 +00:00
dawkaka
47015dddd4 towards slack slash commands 2025-06-17 13:25:31 +00:00
dawkaka
93808ac9d4 discord bot 2025-06-09 14:45:22 +00:00
Anthony Alaribe
a386eebc98 improve facets logic and only store 24 hours data 2025-05-28 16:34:41 -07:00
Anthony Alaribe
be5d33ea64 improve calculation of facets so its hourly as expected 2025-04-25 01:04:21 +02:00
Anthony Alaribe
b2dd092453 add support for facets 2025-04-22 14:09:00 +02:00
Anthony Alaribe
882e5cc31a add support for facets 2025-04-22 14:08:50 +02:00
Anthony Alaribe
4a882984ac anotate exceptions and catch them 2025-04-17 12:57:48 +02:00
dawkaka
523bb80251 increase data retention to 14 days 2025-04-16 14:30:40 +00:00
dawkaka
f77e84d516 query fixes after merge 2025-04-16 14:25:51 +00:00
dawkaka
cf1bb56748 fixes after merge 2025-04-16 14:04:42 +00:00
dawkaka
189079c6b8 fixes, remove logs code and tab 2025-04-16 08:35:47 +00:00
dawkaka
61c45a8776 some progress with aggregation 2025-04-15 21:31:10 +00:00
dawkaka
f7ebdac0fd query from new db 2025-04-14 22:59:58 +00:00
dawkaka
a451864c8a move to logsAndSpans record 2025-04-14 19:23:49 +00:00
dawkaka
c4ca62a19d remove _job_only function 2025-04-09 09:49:47 +00:00
dawkaka
9a35414b3b feat: group anomaly notification emails 2025-04-09 09:46:13 +00:00
dawkaka
07e53c3734 improve anomaly notifications (combine anomalies five minutes window) 2025-04-07 23:10:18 +00:00