-
Notifications
You must be signed in to change notification settings - Fork 2
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
[PR] API Stage 2 - Adding tags #280
Conversation
# Conflicts: # api.md # lib/app_web/router.ex # test/api/item_test.exs # test/api/timer_test.exs
Codecov Report
@@ Coverage Diff @@
## main #280 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 14 15 +1
Lines 414 475 +61
=========================================
+ Hits 414 475 +61
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
CRUD tags should now be properly working. |
Update on this. I've been implementing the I've implemented validators for both checking if a tag already exists and if any tag is invalid. However, the current implementation ignores tags that already exist. Additionally, I'm doing separate DB transactions for each |
Trying to implement the embedding of tags when retrieving items but I can't seem to idiomatically implement proper I've changed the @derive {Jason.Encoder, except: [:__meta__, :__struct__, :timer, :inserted_at, :updated_at]} But I keep getting this annoying error: no function clause matching in Jason.Encoder.App.Item."-inlined-encode/2-"/2 even after deleting the I've tried the approaches of these three links but none helped :(
|
I can't seem to get this to work, after countless attempts. I asked the question in Elixir Forums, hopefully I have an answer: |
@LuchoTurtle thank you for giving a good account of your progress in this PR and opening the question on the Forum. 👍 |
Fetching items with tags is now possible. Tested and documented. Added new test suites to the CI, as well. Going to check docs for any typos and then submit for review. |
@LuchoTurtle PR is still "Draft": Are you done with your editing? 💭 |
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.
Thanks @LuchoTurtle 👍
related to #256
This PR adds tag support, alongside some refactoring related with router helpers.