Choices icon indicating copy to clipboard operation
Choices copied to clipboard

[BUGFIX] Correct evaluation of custom properties

Open brosua opened this issue 4 years ago • 6 comments

Description

The data attribute was mispelled. Also I added a logic to parse JSON, if multiple custom attributes have to be added. It fixes #982.

Screenshots (if appropriate)

Types of changes

  • [ ] Chore (tooling change or documentation change)
  • [ ] Refactor (non-breaking change which maintains existing functionality)
  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • [x] My code follows the code style of this project.
  • [ ] I have added new tests for the bug I fixed/the new feature I added.
  • [ ] I have modified existing tests for the bug I fixed/the new feature I added.
  • [ ] My change requires a change to the documentation.
  • [ ] I have updated the documentation accordingly.

brosua avatar Jan 17 '22 12:01 brosua

Thanks! This will need unit tests for the new function you added and some e2e tests for each input type. It looks like you need to run the linter as well.

mtriff avatar Jan 17 '22 22:01 mtriff

@brosua are you still interested in getting this merged?

mtriff avatar Mar 13 '22 21:03 mtriff

Yes, I will try to update the MR this week

brosua avatar Mar 14 '22 09:03 brosua

Hello @mtriff , you can check the updated MR.

brosua avatar Mar 29 '22 06:03 brosua

awaiting this, really need the functionality, thanks for fixing it :)

Lewke avatar Apr 01 '22 10:04 Lewke

awaiting this pr

reimax avatar May 03 '22 18:05 reimax

Awaiting this PR, please review and merge.

Nugjii avatar Nov 02 '22 04:11 Nugjii

Hello all, sorry for the long delay in getting this merged. I'd like to get this into the next release as well!

Taking a look at the branch, it still needs an e2e test. I've been testing it out locally and it looks like JSON custom properties breaks search with Fuse.js (errors in the console). It looks like this might be fixed by upgrading dependencies, but I haven't had a chance to look into it further.

mtriff avatar Nov 19 '22 13:11 mtriff

Thank you for the contribution @brosua!

mtriff avatar Nov 29 '22 16:11 mtriff