-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from AxonFramework/feature/set-metadata-via-co…
…ntext Set message metadata via Reactor context
- Loading branch information
Showing
30 changed files
with
891 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!-- | ||
Thanks for taking the time to draft up an issue for Axon Framework' Reactor Extension! | ||
Prior to starting off, please read the following: | ||
## Usage Questions | ||
If you are having difficulty using Axon Framework' Reactor Extension, | ||
please consider to check Axon's Reference Guide first if it answers your question: https://docs.axoniq.io/reference-guide/extensions/reactor | ||
When the Reference Guide does no cover the specific question you have, take the following into account: | ||
- GitHub is *not* intended for usages questions, instead: | ||
- Drop a questions on AxonIQ's forum: https://discuss.axoniq.io/ | ||
- Or place a new question on StackOverflow, using the `axon` tag. | ||
## Reporting an bug, feature or enhancement | ||
Prior to filing an issue, please verify that it's not already reported by someone else. | ||
After that's done, your issue will typically fall under one of the following options: | ||
1. It's a `bug` | ||
2. It's a `feature` request | ||
3. It's an `enhancement` request | ||
It is recommended that for either of the three you use one of the prepared issue template. | ||
You can find all three of them [here](https://github.com/AxonFramework/extension-reactor/issues/new/choose). | ||
## None of the above fit! | ||
If you have encountered a use case which is not a question, nor a feature request, feel free to draft your scenario below. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
name: 'Feature request' | ||
about: 'Suggest a feature for the Reactor Extension' | ||
title: | ||
labels: 'Type: Feature' | ||
--- | ||
|
||
<!-- Please use markdown (https://guides.github.com/features/mastering-markdown/) semantics throughout the feature description. --> | ||
|
||
### Feature Description | ||
|
||
<!-- | ||
Please provide a description of the feature you envision. | ||
For example (pseudo-)code snippets showing what it might look like help us understand your suggestion better. | ||
--> | ||
|
||
### Current Behaviour | ||
|
||
<!-- Please share the current behaviour of the Reactor Extension around this topic, if applicable. --> | ||
|
||
### Wanted Behaviour | ||
|
||
<!-- Please described the desired outcome through the Reactor Extension around the suggested feature. --> | ||
|
||
### Possible Workarounds | ||
|
||
<!-- If applicable, share any workarounds for the described feature. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
name: 'Enhancement request' | ||
about: 'Suggest an enhancement/change to an existing feature for the Reactor Extension' | ||
title: | ||
labels: 'Type: Enhancement' | ||
--- | ||
|
||
<!-- Please use markdown (https://guides.github.com/features/mastering-markdown/) semantics throughout the enhancement description. --> | ||
|
||
### Enhancement Description | ||
|
||
<!-- Please provide a description of the feature you envision. --> | ||
|
||
### Current Behaviour | ||
|
||
<!-- Please share the current behaviour of the Reactor Extension around this topic, if applicable. --> | ||
|
||
### Wanted Behaviour | ||
|
||
<!-- Please described the desired outcome through the Reactor Extension around the suggested enhancement. --> | ||
|
||
### Possible Workarounds | ||
|
||
<!-- If applicable, share any workarounds for the described enhancement. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: 'Bug report' | ||
about: 'Report a bug for the Reactor Extension' | ||
title: | ||
labels: 'Type: Bug' | ||
--- | ||
|
||
<!-- Please use markdown (https://guides.github.com/features/mastering-markdown/) semantics throughout the bug description. --> | ||
|
||
### Basic information | ||
|
||
* Axon Framework version: | ||
* JDK version: | ||
* Reactor Extension version: | ||
* Complete executable reproducer if available (e.g. GitHub Repo): | ||
|
||
### Steps to reproduce | ||
|
||
<!-- | ||
Share all steps to be able to reproduce the bug, ideally based on a reproducer. | ||
Combining this with a description of your setup helps us to figure out what the issue might be. | ||
--> | ||
|
||
### Expected behaviour | ||
|
||
<!-- Please describe the expected behaviour. --> | ||
|
||
### Actual behaviour | ||
|
||
<!-- | ||
Please describe the actual behaviour as discovered. | ||
If available, provide the entire stack trace, with markdown (```) semantics. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
"Type: Bug": "Status: Resolved" | ||
"Type: Enhancement": "Status: Resolved" | ||
"Type: Feature": "Status: Resolved" | ||
"Type: Dependency Upgrade": "Status: Resolved" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: maven | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 5 | ||
# Specify labels for pull requests | ||
labels: | ||
- "Type: Dependency Upgrade" | ||
- "Priority 1: Must" | ||
- "Status: In Progress" | ||
# Add reviewers | ||
reviewers: | ||
- "m1l4n54v1c" | ||
- "saratry" | ||
- "stefanvozd" | ||
milestone: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
releasenotes: | ||
sections: | ||
- title: "Features" | ||
emoji: ":star:" | ||
labels: [ "Type: Feature" ] | ||
- title: "Enhancements" | ||
emoji: ":chart_with_upwards_trend:" | ||
labels: [ "Type: Enhancement" ] | ||
- title: "Bug Fixes" | ||
emoji: ":beetle:" | ||
labels: [ "Type: Bug" ] | ||
- title: "Dependency Upgrade" | ||
emoji: ":hammer_and_wrench:" | ||
labels: [ "Type: Dependency Upgrade" ] | ||
issues: | ||
exclude: | ||
labels: [ "Type: Incorrect Repository", "Type: Question" ] | ||
contributors: | ||
exclude: | ||
names: [ "dependabot" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
name: Reactor Extension | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- axon-reactor-*.*.x | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: Test and Build on JDK ${{ matrix.java-version }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- java-version: 8 | ||
sonar-enabled: false | ||
deploy: true | ||
- java-version: 11 | ||
sonar-enabled: true | ||
deploy: false | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK ${{ matrix.java-version }} | ||
uses: actions/[email protected] | ||
with: | ||
java-version: ${{ matrix.java-version }} | ||
server-id: sonatype | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
|
||
- name: Cache .m2 | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven | ||
- name: Maven operation with Sonar | ||
if: matrix.sonar-enabled | ||
run: | | ||
mvn -B -U -Pcoverage \ | ||
clean verify \ | ||
sonar:sonar \ | ||
-Dsonar.projectKey=AxonFramework_extension-reactor \ | ||
-Dsonar.organization=axonframework \ | ||
-Dsonar.host.url=https://sonarcloud.io \ | ||
-Dsonar.login=${{ secrets.SONAR_TOKEN }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Maven operation without Sonar | ||
if: matrix.sonar-enabled != true | ||
run: | | ||
mvn -B -U clean verify | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Deploy to Sonatype | ||
if: github.github.head_ref == null && success() && matrix.deploy | ||
run: | | ||
./mvnw -B -U deploy -DskipTests=true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
MAVEN_USERNAME: ${{ secrets.SONATYPE_TOKEN_ID }} | ||
MAVEN_PASSWORD: ${{ secrets.SONATYPE_TOKEN_PASS }} | ||
|
||
- name: Notify success to Slack | ||
if: success() | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | ||
uses: voxmedia/[email protected] | ||
with: | ||
channel_id: CAGSEC92A | ||
status: SUCCESS | ||
color: good | ||
|
||
- name: Notify failure to Slack | ||
if: failure() | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | ||
uses: voxmedia/[email protected] | ||
with: | ||
channel_id: CAGSEC92A | ||
status: FAILED | ||
color: danger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Trigger the workflow on milestone events | ||
on: | ||
milestone: | ||
types: [closed] | ||
name: Milestone Closure | ||
jobs: | ||
create-release-notes: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@master | ||
- name: Create Release Notes Markdown | ||
uses: docker://decathlon/release-notes-generator-action:2.1.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
OUTPUT_FOLDER: temp_release_notes | ||
USE_MILESTONE_TITLE: "true" | ||
- name: Get the name of the created Release Notes file and extract Version | ||
run: | | ||
RELEASE_NOTES_FILE=$(ls temp_release_notes/*.md | head -n 1) | ||
echo "RELEASE_NOTES_FILE=$RELEASE_NOTES_FILE" >> $GITHUB_ENV | ||
VERSION=$(echo ${{ github.event.milestone.title }} | cut -d' ' -f2) | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
- name: Create a Draft Release Notes on GitHub | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: axon-reactor-${{ env.VERSION }} | ||
release_name: Axon Reactor Extension v${{ env.VERSION }} | ||
body_path: ${{ env.RELEASE_NOTES_FILE }} | ||
draft: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.6.2/apache-maven-3.6.2-bin.zip |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.