-
-
Notifications
You must be signed in to change notification settings - Fork 524
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
Add tags to json and xml exporters #975
Conversation
Do note that I fixed a poorly written step in 951a4a3. It was part of my original hacked xml test, but I ended up writing my own step. |
features/exporting.feature
Outdated
@@ -9,6 +9,8 @@ Feature: Exporting a Journal | |||
And "tags" in the json output should contain "@idea" | |||
And "tags" in the json output should contain "@journal" | |||
And "tags" in the json output should contain "@dan" | |||
And entry 1 should have an array called "tags" with 2 elements |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nitpick:
The use of the word "called" in our tests always means that we are invoking something (like the jrnl app itself). Can you take out the word here to avoid confusion?
So, it should just read "entry 1 should have an array "tags" with 2 elements`.
@wren done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
* tag array for json * add tags to entry in xml * xml test * json test * black * removed called
This is intended to close #974.
It is nice to have the tags separately by entry rather than just a frequency chart which is somewhat useless except for perhaps interesting statistics.
The only exporters that support this kind of structure is JSON, XML, and YAML. YAML already has this feature.
This PR adds individually tagged entries for both xml and json.
Checklist
for the same issue.