Skip to content

Feat/#884 add metadata to Status#889

Merged
stevehu merged 6 commits intomasterfrom
feat/#884-status
Jan 4, 2021
Merged

Feat/#884 add metadata to Status#889
stevehu merged 6 commits intomasterfrom
feat/#884-status

Conversation

@BalloonWen
Copy link
Copy Markdown
Contributor

added metadata to status

- added showMessage, showMetadata, showDescription into status.yml
- now when calling Status toString(), the message, metadata, description part can be turn on and off selectively
- added powermock for status module
- removed configs from status.yml since it will throw exception when merging from app-status.yml
- set default value in code with backward-compatible value
- added setStatusExchange with metadata method overload
@BalloonWen BalloonWen added dont-merge PR: Not ready to be merged 2.0.x Merge to 2.0.x Branch labels Dec 31, 2020
- don't show metadata if metadata is null
- added tests
- removed duplicate version for mockito
- fixed NPE issue for put metadata
@BalloonWen BalloonWen removed the dont-merge PR: Not ready to be merged label Jan 4, 2021
Comment thread status/src/main/java/com/networknt/status/Status.java Outdated
Comment thread handler/src/main/java/com/networknt/handler/LightHttpHandler.java
- make metadata append json object instead of String
@stevehu stevehu merged commit 8548d09 into master Jan 4, 2021
@stevehu stevehu deleted the feat/#884-status branch January 4, 2021 16:36
@stevehu
Copy link
Copy Markdown
Contributor

stevehu commented Jan 4, 2021

@BalloonWen Could you please update the document for the status with the latest changes? Thanks.

@BalloonWen
Copy link
Copy Markdown
Contributor Author

@BalloonWen Could you please update the document for the status with the latest changes? Thanks.

Please take a look and advise networknt/light-doc#234

@BalloonWen BalloonWen linked an issue Jan 7, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.0.x Merge to 2.0.x Branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add metadata to Status to support customizing info

2 participants