Maintainerr icon indicating copy to clipboard operation
Maintainerr copied to clipboard

feat: Add per collection override of the Tautulli watched percent

Open benscobie opened this issue 1 year ago • 1 comments

I've included a separate commit for conditionally showing the inputs, I'll revert if you'd prefer not to hide them. I struggled with the field description so let me know if you have any better ideas 😆

benscobie avatar Sep 30 '24 21:09 benscobie

Hey, just a quick heads-up that I’d like to test a few things before merging this. I’ve been busy the past few days and haven’t had a chance to get to it yet, but I’ll take care of it as soon as possible. Just wanted to let you know that I haven’t forgotten!

jorenn92 avatar Oct 03 '24 16:10 jorenn92

@benscobie, I'm afraid that the changes to the AddModal have affected the ability to edit rules. Importing rules from YAML or the community is also no longer functioning. The modal is quite sensitive, so I generally try to avoid making modifications to it whenever possible.

jorenn92 avatar Oct 07 '24 07:10 jorenn92

@benscobie, I'm afraid that the changes to the AddModal have affected the ability to edit rules. Importing rules from YAML or the community is also no longer functioning. The modal is quite sensitive, so I generally try to avoid making modifications to it whenever possible.

Ah damn, I'll take a look later on if I get some time. Which part of editing rules doesn't work, not saving/loading spinner forever?

benscobie avatar Oct 07 '24 08:10 benscobie

@benscobie, I'm afraid that the changes to the AddModal have affected the ability to edit rules. Importing rules from YAML or the community is also no longer functioning. The modal is quite sensitive, so I generally try to avoid making modifications to it whenever possible.

Ah damn, I'll take a look later on if I get some time. Which part of editing rules doesn't work, not saving/loading spinner forever?

Great, no rush at all! I'm currently in a busy period, so there may be a few days between my replies.

Here are the findings from my quick tests:

  • When opening the modal via the 'edit' button for an existing rule, the rules themselves are no longer loaded. Instead, an empty ruleset appears.
  • Importing community rules partially works, but the initial 'empty' rule remains, which causes unexpected behavior.
  • Importing YAML doesn't seem to have any effect.

jorenn92 avatar Oct 07 '24 09:10 jorenn92

@benscobie, I'm afraid that the changes to the AddModal have affected the ability to edit rules. Importing rules from YAML or the community is also no longer functioning. The modal is quite sensitive, so I generally try to avoid making modifications to it whenever possible.

Ah damn, I'll take a look later on if I get some time. Which part of editing rules doesn't work, not saving/loading spinner forever?

Great, no rush at all! I'm currently in a busy period, so there may be a few days between my replies.

Here are the findings from my quick tests:

* When opening the modal via the 'edit' button for an existing rule, the rules themselves are no longer loaded. Instead, an empty ruleset appears.

* Importing community rules partially works, but the initial 'empty' rule remains, which causes unexpected behavior.

* Importing YAML doesn't seem to have any effect.

That new commit should do it, those scenarios work for me now at least. There was a lot of strange things happening with the useEffects in RuleCreator. I've removed them in favour of setting the initial state directly and updating state at the call sites. This falls under this: https://react.dev/learn/you-might-not-need-an-effect#adjusting-some-state-when-a-prop-changes

benscobie avatar Oct 08 '24 15:10 benscobie

Keeping an eye on this so I can test once it makes it to docker hub dev pull. :)

gold007eye avatar Oct 08 '24 18:10 gold007eye

Good news! It seems to be working now. Thanks for the updates and additions. I'll go ahead and merge the changes. Appreciate your work on this PR!

jorenn92 avatar Oct 11 '24 06:10 jorenn92

:tada: This PR is included in version 2.2.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

jorenn92 avatar Nov 05 '24 14:11 jorenn92