Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL - Merge master with HTTP handlers config reworked #3646

Merged
merged 51 commits into from
May 13, 2022

Commits on Apr 22, 2022

  1. Configuration menu
    Copy the full SHA
    f444383 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    96851f5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    660f4dd View commit details
    Browse the repository at this point in the history
  4. Pattern match the map key for more efficiency

    Doing maps:find creates the ok-tuple, which means garbage, and also then
    needs to match on it. It it more efficient to pattern-match on the map key.
    NelsonVides committed Apr 22, 2022
    Configuration menu
    Copy the full SHA
    9527a06 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #3634 from esl/perf/metrics

    Perf/metrics
    chrzaszcz authored Apr 22, 2022
    Configuration menu
    Copy the full SHA
    5f4a473 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #3635 from esl/perf/macc

    Pattern match the map key for more efficiency
    chrzaszcz authored Apr 22, 2022
    Configuration menu
    Copy the full SHA
    f5b511c View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2022

  1. Configuration menu
    Copy the full SHA
    d71d8d2 View commit details
    Browse the repository at this point in the history
  2. Move http handler config specs out of mongoose_config_spec

    It will be handled by mongoose_config_handler.
    chrzaszcz committed Apr 25, 2022
    Configuration menu
    Copy the full SHA
    1a4b8ff View commit details
    Browse the repository at this point in the history
  3. Move merge_sections/2 to mongoose_config_utils

    The goal is better separation between specs and utils
    chrzaszcz committed Apr 25, 2022
    Configuration menu
    Copy the full SHA
    62a55f9 View commit details
    Browse the repository at this point in the history
  4. Remove unused include

    chrzaszcz committed Apr 25, 2022
    Configuration menu
    Copy the full SHA
    0a5ccd0 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2022

  1. Add a new behaviour: mongoose_http_handler

    API:
    - config_spec/0 returns the config section spec for all possible HTTP handlers
    - get_routes/1 returns Cowboy routes for a list of configured handlers
    
    There are two optional callbacks:
    - config_spec/0 returning config specification for the handler,
      if it has any options
    - routes/1 returning Cowboy routes, if different from the default
    
    All handlers which have options should be listed
      in configurable_handler_modules/0
    chrzaszcz committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    1706de1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    12d72a5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a84386c View commit details
    Browse the repository at this point in the history
  4. Add mongoose_http_handler callbacks to mod_websockets

    Use maps with defaults in the config spec
    chrzaszcz committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    3f70340 View commit details
    Browse the repository at this point in the history
  5. Add mongoose_http_handler callbacks to mongoose_api

    Use maps with defaults, include all handlers by default
    chrzaszcz committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    3d4bfd9 View commit details
    Browse the repository at this point in the history
  6. Add mongoose_http_handler callbacks to mongoose_api_admin

    - Use maps with defaults for options
    chrzaszcz committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    b24ffda View commit details
    Browse the repository at this point in the history
  7. Add mongoose_http_handler callbacks to mongoose_api_client

    Expect options in a map
    chrzaszcz committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    f45db8d View commit details
    Browse the repository at this point in the history
  8. Add mongoose_http_handler callbacks to mongoose_client_api

    - Use maps with defaults
    - Include all handlers by default
    
    New options:
    - 'handlers' - to choose specific low-level handlers,
    - 'docs' - to disable docs.
    chrzaszcz committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    19a798a View commit details
    Browse the repository at this point in the history
  9. Move handler-related functionality out of ejabberd_cowboy

    It will be placed in mongoose_http_handler
    
    Also: refactor 'store_trails'
    chrzaszcz committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    a40f308 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f61348a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    aa71aef View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    3be89a9 View commit details
    Browse the repository at this point in the history
  13. Update small tests for HTTP handler config options

    - Use maps with defaults
    - Add new options
    - Rework test layout after reworking mongoose_client_api config
    - Remove the custom logic for comparing handler tuples
    chrzaszcz committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    22ebfd7 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    aac7f26 View commit details
    Browse the repository at this point in the history
  15. Update docs for the changed HTTP handlers

    - Simplify examples to match the defaults in mongooseim.toml
    - Document the new options: `handlers` and `docs`
    - Update the list of available handlers
    chrzaszcz committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    8367450 View commit details
    Browse the repository at this point in the history
  16. Skip to_binary, field is not used

    By now we have a pretty printer in the logger, and creating accumulators
    is a hot operation, so we can skip this field when it is not needed.
    NelsonVides committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    6189d6d View commit details
    Browse the repository at this point in the history
  17. Merge pull request #3637 from esl/perf/origin_stanza_acc

    Skip pretty-printing of unused accumulator field
    chrzaszcz authored Apr 26, 2022
    Configuration menu
    Copy the full SHA
    c53ce7a View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    96147b9 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    98df6f7 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    98437a4 View commit details
    Browse the repository at this point in the history
  21. Merge pull request #3638 from esl/quickfix/ping

    Fix mod_ping with host_types
    Premwoik authored Apr 26, 2022
    Configuration menu
    Copy the full SHA
    2023f3e View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    3f3f976 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2022

  1. Configuration menu
    Copy the full SHA
    b9dc81d View commit details
    Browse the repository at this point in the history
  2. Fix indentation

    Paweł Chrząszcz committed Apr 27, 2022
    Configuration menu
    Copy the full SHA
    eeda654 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #3636 from esl/http-handler-rework

    Rework HTTP handler configuration
    Premwoik authored Apr 27, 2022
    Configuration menu
    Copy the full SHA
    0d956f2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    09bccb3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3116e73 View commit details
    Browse the repository at this point in the history
  6. Print cache key

    arcusfelis committed Apr 27, 2022
    Configuration menu
    Copy the full SHA
    7417601 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ab7dab5 View commit details
    Browse the repository at this point in the history
  8. Small mam_utils clean

    NelsonVides committed Apr 27, 2022
    Configuration menu
    Copy the full SHA
    03ea4e7 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    80da58a View commit details
    Browse the repository at this point in the history
  10. Use maps instead of dicts

    NelsonVides committed Apr 27, 2022
    Configuration menu
    Copy the full SHA
    535617a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8433f2b View commit details
    Browse the repository at this point in the history
  12. Merge pull request #3640 from esl/mu-fix-cert-cache-from-ci-interface

    This PR addresses "There is no easy way to reset cache without making new changes into the code. And sometimes cache breaks, because a committer did something wrong".
    
    Proposed changes include:
    
        Use CI_CERT_KEY_VERSION env variable to change the key externally.
        Avoid caching invalid certificate data. It should make fixing bugs with certificates a bit easier.
    NelsonVides authored Apr 27, 2022
    Configuration menu
    Copy the full SHA
    d4cba78 View commit details
    Browse the repository at this point in the history
  13. Merge pull request #3641 from esl/shaper_names

    MAM shaper touches
    arcusfelis authored Apr 27, 2022
    Configuration menu
    Copy the full SHA
    7c573d4 View commit details
    Browse the repository at this point in the history
  14. Merge pull request #3525 from esl/upgrade_mongoose_jid

    Upgrade mongoose jid
    chrzaszcz authored Apr 27, 2022
    Configuration menu
    Copy the full SHA
    72db059 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2022

  1. Configuration menu
    Copy the full SHA
    199523f View commit details
    Browse the repository at this point in the history

Commits on May 10, 2022

  1. Merge pull request #3643 from esl/rdbms_request_transactions

    Add transaction async requests
    chrzaszcz authored May 10, 2022
    Configuration menu
    Copy the full SHA
    a5d00fc View commit details
    Browse the repository at this point in the history

Commits on May 12, 2022

  1. Merge remote-tracking branch 'origin/master' into graphql/merge-http-…

    …handlers-config-rerwork
    Premwoik committed May 12, 2022
    Configuration menu
    Copy the full SHA
    73c6d50 View commit details
    Browse the repository at this point in the history
  2. Use lower JID fields

    Premwoik committed May 12, 2022
    Configuration menu
    Copy the full SHA
    8e2934b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f786e54 View commit details
    Browse the repository at this point in the history