nulogy_message_bus_producer 3.2.0 → 4.0.0.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +186 -25
  3. data/Rakefile +2 -4
  4. data/db/migrate/20200611150212_create_public_subscriptions_and_events_tables.rb +2 -2
  5. data/db/migrate/20210330204121_add_event_type_to_subscription_events.rb +9 -0
  6. data/lib/nulogy_message_bus_producer.rb +32 -12
  7. data/lib/nulogy_message_bus_producer/base_subscription.rb +1 -1
  8. data/lib/nulogy_message_bus_producer/config.rb +25 -1
  9. data/lib/nulogy_message_bus_producer/configuration/query_parser.rb +71 -0
  10. data/lib/nulogy_message_bus_producer/repopulate_replication_slots.rb +7 -5
  11. data/lib/nulogy_message_bus_producer/self_serve_subscription.rb +18 -0
  12. data/lib/nulogy_message_bus_producer/subscription_event.rb +3 -0
  13. data/lib/nulogy_message_bus_producer/subscriptions/configured_subscription.rb +14 -0
  14. data/lib/nulogy_message_bus_producer/subscriptions/finder.rb +40 -0
  15. data/lib/nulogy_message_bus_producer/subscriptions/no_variables.rb +43 -0
  16. data/lib/nulogy_message_bus_producer/subscriptions/postgres_transport.rb +11 -4
  17. data/lib/nulogy_message_bus_producer/subscriptions/query_validator.rb +47 -0
  18. data/lib/nulogy_message_bus_producer/subscriptions/risky_subscription_blocker.rb +17 -10
  19. data/lib/nulogy_message_bus_producer/subscriptions/valid_for_schema_validator.rb +14 -0
  20. data/lib/nulogy_message_bus_producer/version.rb +1 -1
  21. data/lib/tasks/engine/message_bus_producer.rake +4 -4
  22. data/spec/dummy/Rakefile +1 -1
  23. data/spec/dummy/app/mailers/application_mailer.rb +2 -2
  24. data/spec/dummy/bin/bundle +2 -2
  25. data/spec/dummy/bin/rails +3 -3
  26. data/spec/dummy/bin/rake +2 -2
  27. data/spec/dummy/bin/setup +10 -11
  28. data/spec/dummy/bin/update +10 -10
  29. data/spec/dummy/bin/yarn +6 -8
  30. data/spec/dummy/config.ru +1 -1
  31. data/spec/dummy/config/boot.rb +3 -3
  32. data/spec/dummy/config/database.yml +2 -2
  33. data/spec/dummy/config/environment.rb +1 -1
  34. data/spec/dummy/config/environments/development.rb +2 -2
  35. data/spec/dummy/config/environments/production.rb +5 -5
  36. data/spec/dummy/config/environments/test.rb +2 -2
  37. data/spec/dummy/config/initializers/assets.rb +2 -2
  38. data/spec/dummy/config/puma.rb +3 -3
  39. data/spec/dummy/config/spring.rb +2 -2
  40. data/spec/dummy/db/schema.rb +2 -1
  41. data/spec/dummy/log/development.log +321 -0
  42. data/spec/dummy/log/test.log +19061 -0
  43. data/spec/integration/lib/nulogy_message_bus_producer/config_spec.rb +37 -0
  44. data/spec/integration/lib/nulogy_message_bus_producer/repopulate_replication_slots_spec.rb +23 -14
  45. data/spec/integration/lib/nulogy_message_bus_producer/subscription_spec.rb +3 -59
  46. data/spec/integration/lib/nulogy_message_bus_producer/subscriptions/finder_spec.rb +54 -0
  47. data/spec/integration/lib/nulogy_message_bus_producer/subscriptions/no_variables_spec.rb +46 -0
  48. data/spec/integration/lib/nulogy_message_bus_producer/subscriptions/postgres_transport_spec.rb +99 -55
  49. data/spec/integration/lib/nulogy_message_bus_producer/{subscriber_graphql_schema_validator_spec.rb → subscriptions/query_validator_spec.rb} +5 -5
  50. data/spec/integration/lib/nulogy_message_bus_producer/subscriptions/risky_subscription_blocker_spec.rb +1 -19
  51. data/spec/integration/lib/nulogy_message_bus_producer_spec.rb +25 -0
  52. data/spec/integration_spec_helper.rb +0 -6
  53. data/spec/nulogy_message_bus_producer/configuration/query_parser_spec.rb +58 -0
  54. data/spec/nulogy_message_bus_producer/subscriptions/subscription_spec.rb +9 -0
  55. data/spec/spec_helper.rb +25 -1
  56. data/spec/support/kafka.rb +15 -9
  57. data/spec/support/kafka_connect.rb +1 -1
  58. data/spec/support/shared_examples/subscription_validations.rb +77 -0
  59. data/spec/support/spec_utils.rb +3 -2
  60. data/spec/support/sql_helpers.rb +9 -11
  61. data/spec/support/subscription_helpers.rb +22 -4
  62. data/spec/support/test_graphql_schema.rb +7 -0
  63. metadata +58 -38
  64. data/lib/nulogy_message_bus_producer/subscriber_graphql_schema_validator.rb +0 -45
  65. data/lib/nulogy_message_bus_producer/subscription.rb +0 -28

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.