Commit Graph

  • c398e51779 Introduce GEMINI project documentation and enhance AGENTS.md feature/parser-packages windyboy 2025-12-27 12:20:06 +08:00
  • c0a66cf845 Enhance aviation parser with security fixes and comprehensive refactoring windyboyandClaude Sonnet 4.5 2025-12-26 17:55:25 +08:00
  • ba82b9206a refactor aviation parser architecture windyboy 2025-12-24 17:40:52 +08:00
  • b82b707a25 refactor parser packages windyboy 2025-12-24 17:23:41 +08:00
  • dbde6524b3 refactor weather parser windyboy 2025-12-24 17:05:51 +08:00
  • d0fd461e38 Add weather report parsing for METAR, SPECI, and TAF windyboyandClaude Sonnet 4.5 2025-12-24 16:38:03 +08:00
  • c1808c0523 Implement feature X to enhance user experience and optimize performance windyboy 2025-12-24 15:09:39 +08:00
  • cf8e196248 🔧 Add nil logger handling in NewConsumerManager and NewStreamManager; update integration test to pass config windyboy 2025-12-24 14:53:14 +08:00
  • 9a5f8a7d72 Add CLAUDE.md for project guidance, architecture overview, and essential commands windyboy 2025-12-24 14:24:19 +08:00
  • 7b6f6383ad Add AFTN protocol validation and serial reader health monitoring to enhance aviation telegram processing reliability and observability windyboyandClaude Sonnet 4.5 2025-12-24 14:21:59 +08:00
  • 6eff35b56f 🔧 Update Go module dependencies and modify NATS configuration to exclusively support JetStream mode. Upgrade go.uber.org/zap to version 1.27.1 and golang.org/x/crypto to version 0.45.0. Revise Makefile and documentation to reflect changes in NATS mode, ensuring consistent messaging behavior across development and production environments. Enhance README and configuration files to clarify JetStream usage and remove references to Core NATS mode. windyboy 2025-11-21 09:59:47 +08:00
  • ee7cac95f0 Add seed and seed-slow targets to Makefile and Taskfile for generating sample telegrams. Enhance documentation with usage examples for continuous slow seeding and configuration options. This allows for easier testing and monitoring of message delivery in development environments. windyboy 2025-11-19 17:14:22 +08:00
  • 5ad86d6296 Enable Dead-Letter Queue (DLQ) in development configuration and enhance NATS consumer error handling. Update config.dev.toml to enable DLQ routing for failed messages. Modify NATS consumer to append DLQ subject to stream subjects if enabled. Improve error logging in message processing to include message IDs and DLQ routing status, ensuring better observability and error management. windyboy 2025-11-19 17:09:52 +08:00
  • 8914156a58 Update Go module dependencies and enhance NATS consumer metrics. Add github.com/kylelemons/godebug as an indirect dependency. Upgrade github.com/prometheus/common to version 0.67.3. Change NATS consumer mode to "jetstream" in the development configuration. Improve observability by ensuring metrics for pending messages are initialized and recorded correctly in JetStream mode. Update documentation to reflect changes in metrics handling and consumer behavior. windyboy 2025-11-19 16:49:53 +08:00
  • f01dd3bf1f Refactor telemetry and metrics handling to enhance observability. Remove TLS configuration from telemetry initialization, replacing it with an insecure option for HTTP. Update OpenTelemetry endpoint handling to normalize URLs. Introduce new metrics for publish failures categorized by message type. Enhance Grafana dashboards with detailed descriptions and additional metrics for better monitoring insights. Update documentation to reflect changes in metrics and observability features. windyboy 2025-11-19 14:53:58 +08:00
  • c687fdcde8 Update agent guidelines and improve documentation structure. Refactor AGENTS.md to streamline commands and code style guidelines, enhancing clarity and usability. Update README.md with refined NATS consumer configuration details and observability metrics. Modify .gitignore to exclude dynamically generated Prometheus target files. Enhance configuration files for development and production environments, ensuring consistency and clarity in settings. windyboy 2025-11-19 13:07:09 +08:00
  • 06fc9cb9e0 🔧 Update Go version in go.mod and enhance build process with versioning information. Modify Makefile and Taskfile to inject build metadata (version, commit, build time) into the binary. Improve README with instructions for custom version builds and document new build info features. Add benchmarks for message parsing and processing to improve performance testing capabilities. windyboy 2025-11-18 14:15:58 +08:00
  • 7f44b5389d Enhance observability and error handling in NATS integration. Introduce comprehensive OpenTelemetry support with environment-based sampling and semantic attributes for tracing and metrics. Implement an advisory dead-letter queue (DLQ) handler for managing message delivery failures. Update NATS consumer to utilize structured logging and improve error handling strategies. Refactor configuration files for OpenTelemetry collector in both development and production environments, ensuring robust telemetry integration. Enhance documentation to reflect new features and best practices for observability. windyboy 2025-11-18 11:47:35 +08:00
  • 5d05237283 Refactor NATS consumer management by introducing a dedicated ConsumerManager and StreamManager for lifecycle management. Enhance error handling with a new ErrorHandler to streamline message processing and recovery logic. Update consumer initialization to utilize the new managers, improving code organization and maintainability. Add comprehensive tests for the new components to ensure reliability and robustness in handling NATS operations. windyboy 2025-11-18 08:38:03 +08:00
  • 61647cf849 Update Prometheus configuration and enhance monitoring capabilities. Refactor docker-compose.dev.yml to dynamically generate target configurations for the CAATSM receiver. Modify Makefile and Taskfile to allow setting the monitoring address via environment variables. Update observability settings in config.dev.toml and Prometheus scrape configurations to improve integration with the monitoring stack. Enhance CLI options for monitoring address and disable monitoring features as needed. windyboy 2025-11-17 17:53:24 +08:00
  • 704c7b80f6 Add repository guidelines and enhance documentation for project structure, build commands, coding standards, and testing practices. Introduce AGENTS.md for contributor guidance, update README.md to reference new guidelines, and improve configuration documentation for NATS modes. Update Makefile and Taskfile with clearer run commands and requirements for development and production modes. Add production deployment guide and improve logging configuration for better observability. windyboy 2025-11-17 16:25:23 +08:00
  • 67abd66fa3 Enhance logging configuration by introducing file output options and rotation settings in config.dev.toml. Update logger implementation to support multiple output streams, including file logging with rotation using lumberjack. Improve error handling and logging across various components, ensuring consistent logging practices. Update .gitignore to include log files and compressed logs. Add new Go module dependency for lumberjack. windyboy 2025-11-17 12:58:40 +08:00
  • 204217015d Add configuration for Code Review Automation and enhance .gitignore. Introduce .coderabbit.yml for automated reviews with profiles for correctness, maintainability, security, and performance. Update paths to include relevant directories and exclude generated files. Modify .gitignore to include coverage reports and generated files. Refactor Docker Compose to use updated paths for database initialization scripts. Update Go module dependencies and enhance Makefile with new code generation tasks. Transition domain models to a new DTO structure for better separation of concerns. windyboy 2025-11-17 11:47:23 +08:00
  • 12fda00df9 Introduce seed-telegrams tool for generating synthetic telegrams for testing and development. Enhance README with detailed usage instructions, command-line parameters, and examples. Add unit tests for telegram generation and status selection logic to ensure robustness. Update documentation to reflect new features and usage scenarios. windyboy 2025-11-16 17:24:16 +08:00
  • 06b2495d77 Refactor logging implementation by removing the custom logging utility and transitioning to direct usage of the Zap logger. Update logger configuration in the development environment and clean up related files, including the removal of unused logger configuration JSON. Ensure consistent logging practices across the application. windyboy 2025-11-16 13:41:51 +08:00
  • e27328378a Revise observability features by introducing new health and liveness endpoints (/livez and /readyz), updating Prometheus metrics to track NATS consumer pending messages, and enhancing telemetry integration for better monitoring. Update documentation to reflect these changes and ensure consistency in metric naming conventions. windyboy 2025-11-16 13:14:46 +08:00
  • 3d8572a69f Implement dead-letter queue (DLQ) enhancements by adding configuration options and validation logic. Update observability metrics to track DLQ message counts and publish failures. Enhance documentation to reflect new metrics and DLQ behavior in JetStream mode. windyboy 2025-11-16 11:55:13 +08:00
  • 6616c7e10d Add new dev-run-compose task to Taskfile for running the CAATSM receiver in a Docker Compose development stack. Update monitoring configuration in config.dev.toml to use console format. Modify Prometheus scrape configuration to target a specific IP address. Enhance NATS consumer error handling with retry logic for JetStream availability and adjust logging level for consumer metrics. windyboy 2025-11-16 11:38:49 +08:00
  • 7e7b8ca412 Update observability configuration by enabling monitoring in the development environment, adding a new Prometheus scrape job for the CAATSM receiver, and enhancing documentation with recommended scrape configurations and validation steps for metrics. Refactor NATS consumer initialization to ensure idempotent consumer creation. windyboy 2025-11-16 10:34:53 +08:00
  • e440c057b5 Enhance Ginkgo unit test execution by specifying directories for tests in Makefile and Taskfile. Update README to reflect changes in test command usage and clarify the structure of unit tests. windyboy 2025-11-16 10:18:40 +08:00
  • 69fc8cf337 Update test commands to run Ginkgo unit tests in verbose mode. Modify README and Taskfile to reflect changes in test execution and improve clarity on running unit tests. windyboy 2025-11-16 10:08:26 +08:00
  • 487a0acb48 Refactor testing framework to utilize Ginkgo for unit tests and introduce a new test-all target for running both unit and integration tests. Update README and Taskfile to reflect changes in test execution commands and clarify dependencies. Migrate domain models to a new model package for better separation of concerns. windyboy 2025-11-16 09:58:49 +08:00
  • a96cb8a40b Implement dead-letter queue (DLQ) functionality for handling permanent failures in message processing. Update configuration to enable DLQ and specify the subject for routing failed messages. Enhance observability by adding metrics for message handling, retries, and database operations. Introduce structured logging for better traceability of message processing events. windyboy 2025-11-16 09:15:37 +08:00
  • c98baa0ff4 Refactor NATS consumer defaults (#7) windyboy 2025-11-16 08:24:29 +08:00
  • dccff366d2 Update logger configuration for development environment, enhancing logging structure with zap and lumberjack settings. Refactor logging utility to improve configuration file handling and add error management. Modify integration tests to utilize the new logger setup and adjust test payloads for consistency. windyboy 2025-11-15 17:42:10 +08:00
  • 53208997e8 Integrate monitoring server for observability, adding health and metrics endpoints. Update configuration to enable monitoring features and enhance README with deployment examples for Kubernetes and systemd. Refactor application initialization to include monitoring server setup and improve error handling in message processing metrics. windyboy 2025-11-15 16:30:29 +08:00
  • c3f98e9c7c Add NATS exporter to Docker Compose for enhanced observability, update Prometheus and Grafana configurations to integrate new metrics, and enhance documentation to reflect changes in the development stack. windyboy 2025-11-15 15:27:53 +08:00
  • 629c1e9138 Enhance Grafana configuration by adding new dashboards for OpenTelemetry Collector and NATS/JetStream, and update data source configurations to include unique identifiers for Prometheus and Jaeger. Update development documentation to reflect the automatic loading of dashboards. windyboy 2025-11-15 15:02:00 +08:00
  • 1378d6e31b Update Docker Compose configuration to enhance observability with health checks for Jaeger and OpenTelemetry Collector. Modify telemetry settings in the development configuration to enable metrics collection. Adjust endpoint settings for Jaeger in the OpenTelemetry Collector configuration. windyboy 2025-11-15 14:42:33 +08:00
  • cdb0cea8f7 Enhance Docker Compose setup by adding initialization services for PostgreSQL and NATS, improving JetStream configuration, and updating the Taskfile to use Docker Compose instead of Podman. Modify database schema to enforce unique constraints on (uuid, received_at) for telegrams and telegrams_raw tables. windyboy 2025-11-15 14:24:11 +08:00
  • 184c5453fb Expand Docker Compose development stack to include observability tools: OpenTelemetry Collector, Jaeger, Prometheus, and Grafana. Update README with new usage instructions for the observability stack and enhance Taskfile for streamlined development commands. Introduce sample telegram generation utility and improve NATS configuration for core and JetStream modes. windyboy 2025-11-15 12:08:26 +08:00
  • 4f16bd6d90 Introduce Docker Compose development stack with TimescaleDB and NATS services. Update README with usage instructions for local development. Upgrade Go version to 1.25.0 and update dependencies. Refactor configuration for NATS consumer rules and enhance Telegram database schema with TimescaleDB support. windyboy 2025-11-15 09:46:29 +08:00
  • 359e7694ab Update dependencies, enhance NATS consumer configuration, and improve error handling in message processing. Introduce telemetry support with OpenTelemetry for tracing and metrics. Refactor README to include new configuration options and update tests for improved coverage of error scenarios. windyboy 2025-11-15 09:01:24 +08:00
  • 31839cf21f Upgrade Go version to 1.24.0 and update various dependencies, including NATS, Viper, and Go modules. Refactor error handling in configuration loading and validation processes for improved clarity and consistency. windyboy 2025-11-14 23:42:39 +08:00
  • 88d5922f90 Update README with configuration details, add default test configuration, and implement TelegramMapper tests. Enhance message processing to set timestamps and improve error handling in the processor. Refactor NATS consumer configuration and ensure proper handling of message attributes. windyboy 2025-11-14 23:18:10 +08:00
  • 02e54a2670 Refactor application initialization to load configuration and enhance message processing. Introduce effective subscription topic handling and improve error management in NATS consumer. Update tests for publisher error handling and add new dependency injection method for app initialization. windyboy 2025-11-14 22:43:04 +08:00
  • 9cce4610b6 Enhance NATS configuration and error handling. Introduce stream limits and consumer rules in configuration files. Refactor message processing to handle permanent errors. Update README and development configuration to reflect changes. Add tests for new error handling mechanisms. windyboy 2025-11-14 21:42:04 +08:00
  • a574cfcf27 Upgrade Go version to 1.23.0 and update dependencies. Introduce new application structure with Clean Architecture principles, including message processing, NATS integration, and PostgreSQL repository. Add configuration management using Koanf and structured logging with Zap. Remove legacy GraphQL integration and related files. Implement dependency injection with Google Wire. windyboy 2025-11-14 08:42:26 +08:00
  • bafbbf470c Refactor uuid to id in message handling & processing. (#6) windyboy 2024-08-14 14:29:24 +08:00
  • 8538153cfe Merge pull request #5 from windyboy/introduce-interfaces windyboy 2024-08-14 11:49:43 +08:00
  • da1d713946 🚀 Integrate Hasura service into NATS message processing. windyboy 2024-08-14 11:48:39 +08:00
  • a5fa4955f4 Add configuration to interfaces. windyboy 2024-08-14 11:48:18 +08:00
  • 6b44c2d7a0 refactor subscribe (#4) windyboy 2024-08-14 09:40:47 +08:00
  • 5470118461 Update github.com/urfave/cli/v2 to v2.27.4. (#3) windyboy 2024-08-12 17:48:05 +08:00
  • 8a4c46aa34 update handler (#2) windyboy 2024-08-12 17:47:34 +08:00
  • fd58395db3 🔧 Remove commented-out regex patterns and initialization in config. (#1) windyboy 2024-08-12 14:23:31 +08:00
  • 4ff44804f2 refactor: Remove coverage files from gitignore windyboy 2024-08-12 10:11:53 +08:00
  • e468e1f89c refactor: Add ToString method to ParsedMessage struct windyboy 2024-08-09 11:13:25 +08:00
  • 85ce23cb16 refactor: Update 'Content' field in HasuraRepository.CreateNew method windyboy 2024-08-09 11:07:07 +08:00
  • 091a054eab refactor: Rename 'text' field to 'content' in telegrams table windyboy 2024-08-09 10:29:17 +08:00
  • 9768bad108 chore: Add task for generating test coverage report windyboy 2024-08-07 20:37:34 +08:00
  • 68387e4a90 refactor: Add task for generating test coverage report windyboy 2024-08-07 20:05:43 +08:00
  • 622bd8e11b refactor: Remove commented-out code in schedule_parser.go windyboy 2024-08-07 20:01:14 +08:00
  • 8a1de2db43 refactor: Add coverage.html to .gitignore windyboy 2024-08-07 20:01:06 +08:00
  • 3a1f533d63 hasura windyboy 2024-08-07 17:15:41 +08:00
  • 15ce2c033a refactor: Update aviation_parser.go to remove unused code and update constants windyboy 2024-08-07 17:05:42 +08:00
  • e1cc851cc3 refactor: Rename 'body_and_footer' column to 'text' in telegrams table windyboy 2024-08-07 14:10:15 +08:00
  • dd10023199 refactor: Add installation of gq tool to Taskfile windyboy 2024-08-07 14:10:03 +08:00
  • f340c66b19 refactor: Update aviation_parser.go to remove unused code and update constants windyboy 2024-08-07 11:10:18 +08:00
  • 55a286f521 refactor: Improve error handling in NATS message handling windyboy 2024-08-07 11:10:08 +08:00
  • e4fa138089 refactor: Update constants and remove unused code in aviation_parser.go and constants.go windyboy 2024-08-07 10:47:15 +08:00
  • 5515f353b4 refactor: Refactor aviation_parser.go to improve code readability and maintainability windyboy 2024-08-06 22:46:01 +08:00
  • bbaea62788 refactor: Update parseWaypoints function to return error in schedule_parser_test.go windyboy 2024-08-06 22:28:46 +08:00
  • afafd51bad refactor: Remove unused code and update regular expressions in schedule_def.go windyboy 2024-08-06 13:12:19 +08:00
  • 1e37e21331 chore: Update go.mod dependencies to latest versions windyboy 2024-08-06 12:44:43 +08:00
  • a57e924501 refactor: Update aviation_parser.go and pattern.go to use BodyConfig struct instead of config.BodyConfig windyboy 2024-08-06 12:44:32 +08:00
  • bef663ca3d refactor: Update Civial Aviation Authority Telegram message processor usage in main.go and add NATS server connection logging windyboy 2024-08-05 15:58:46 +08:00
  • 3c37410737 refactor: Update Nats handler and Hasura repository initialization windyboy 2024-08-05 11:42:33 +08:00
  • 1a858cf19c refactor: Remove redundant code and improve configuration handling in main.go windyboy 2024-08-05 11:23:22 +08:00
  • 3c917c93af refactor: Update main.go to process Civial Aviation Authority Telegram messages and add CLI flag for Nats server address and topic windyboy 2024-08-05 10:58:20 +08:00
  • c54bcbc0a8 refactor: Update Taskfile.yml to use lowercase variable names for consistency windyboy 2024-08-05 10:11:33 +08:00
  • 65500a8d45 refactor: Add task to install ginkgo for testing windyboy 2024-08-02 19:45:49 +08:00
  • 6a689b073f deps windyboy 2024-08-02 16:43:26 +08:00
  • 70e33742fa mod tidy windyboy 2024-08-02 16:39:34 +08:00
  • b9e9c2b8a7 refactor: Remove commented code for extracting flight numbers windyboy 2024-08-02 16:04:11 +08:00
  • 2690f571ad refactor: Add support for parsing HO, NS, and EU Airlines flight schedule data windyboy 2024-08-02 14:58:44 +08:00
  • aff70c7373 refactor: Update flight schedule parser to handle multiple flight numbers windyboy 2024-08-02 14:37:12 +08:00
  • 8798727a0d refactor: Update FlightNumberPattern regex to handle multiple flight numbers windyboy 2024-08-02 14:21:12 +08:00
  • 144f3a9d9a refactor: Add support for parsing 翔鹏航空 (8L) flight schedule data windyboy 2024-08-02 12:39:57 +08:00
  • a37596b40b refactor: Add support for parsing ZH Airlines flight schedule data windyboy 2024-08-02 12:37:12 +08:00
  • 7b1a072f32 refactor: Add support for parsing 9C Airlines flight schedule data windyboy 2024-08-02 11:47:07 +08:00
  • 81cf4584ac remove schedule parser definition to another file windyboy 2024-08-02 11:40:46 +08:00
  • 158a03d4c3 refactor: Improve parsing of CK Airlines (CK) flight schedule data windyboy 2024-08-02 11:36:21 +08:00
  • 2962dee69d 3U schedule windyboy 2024-08-02 11:24:09 +08:00
  • a734f5f25c refactor: Improve parsing of flight schedule data windyboy 2024-08-02 11:15:23 +08:00
  • d91e61ab5d up zhiqiang feng 2024-08-02 10:01:49 +08:00
  • 7222be4b59 refactor: Add test for parsing date in schedule_parser_test.go windyboy 2024-07-31 21:46:39 +08:00
  • 20872710ce refactor: Improve parsing of flight schedule data windyboy 2024-07-31 17:48:36 +08:00
  • 54dcefb08a refactor: Improve parsing of flight schedule data windyboy 2024-07-31 17:46:18 +08:00
  • 6c01443da8 refactor: Add support for parsing GS Airlines flight schedule data windyboy 2024-07-31 17:40:56 +08:00