Skip to content

Conversation

@the-mikedavis
Copy link
Collaborator

This is two mostly cosmetic refactors:

  • Move include/khepri.hrl to include/rabbit_khepri.hrl in rabbit. This helps ErlangLS find the header. It seems to confuse this header with one of the same name from khepri itself.
  • Use preprocessor macros for building path patterns. This isn't a meaningful change yet but will be used in the future to pattern match on paths in a khepri_adv:node_props_map().

@the-mikedavis the-mikedavis self-assigned this Nov 14, 2024
@mergify mergify bot added the bazel label Nov 14, 2024
@the-mikedavis the-mikedavis marked this pull request as ready for review November 18, 2024 22:31
@the-mikedavis the-mikedavis force-pushed the md/khepri-path-preproc-macros branch from 0167637 to 13d4b66 Compare November 20, 2024 14:19
Copy link
Collaborator

@dumbbell dumbbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@the-mikedavis the-mikedavis force-pushed the md/khepri-path-preproc-macros branch from 13d4b66 to e27046d Compare November 20, 2024 21:51
@the-mikedavis the-mikedavis marked this pull request as draft November 22, 2024 16:09
This fixes erlang_ls's header resolution. Previously it would confuse
the include_lib of the `khepri.hrl` from Khepri with this header in
the rabbit app.

This header is also specific to how rabbit uses Khepri so I think the
new name fits better.
@the-mikedavis the-mikedavis force-pushed the md/khepri-path-preproc-macros branch from 8514c9b to c3c7675 Compare November 22, 2024 16:21
@the-mikedavis the-mikedavis marked this pull request as ready for review November 22, 2024 16:42
@the-mikedavis the-mikedavis merged commit d597732 into main Nov 22, 2024
273 checks passed
@the-mikedavis the-mikedavis deleted the md/khepri-path-preproc-macros branch November 22, 2024 17:11
@the-mikedavis the-mikedavis changed the title Use preprocessor macros for building Khepri path patterns 4.1.x: Use preprocessor macros for building Khepri path patterns Nov 22, 2024
@the-mikedavis the-mikedavis added this to the 4.1.0 milestone Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants