planner icon indicating copy to clipboard operation
planner copied to clipboard

Refactor invites

Open jonodrew opened this issue 6 months ago • 5 comments

This refactors out a Controller method to a plain ruby object. I'm doing this so that I can access it from other Controllers where we need to update attendance at a Workshop.

It may be that in the future the entire Controller can be removed, but for now I want to make small changes that don't break anything that's already deployed.

jonodrew avatar Aug 19 '25 12:08 jonodrew

I don't think everyone has to use it - but I will, and it's helpful for me. I don't think it'll impact anyone else on the project, will it?

On 19 August 2025 20:19:04 BST, Till! @.***> wrote:

@till commented on this pull request.

@@ -0,0 +1,11 @@ +repos:

Kinda a no no for me. Would defer to CI for that. 🫣

-- Reply to this email directly or view it on GitHub: https://github.com/codebar/planner/pull/2290#pullrequestreview-3133546287 You are receiving this because you authored the thread.

Message ID: @.***>

jonodrew avatar Aug 19 '25 19:08 jonodrew

I don't think everyone has to use it - but I will, and it's helpful for me. I don't think it'll impact anyone else on the project, will it? … On 19 August 2025 20:19:04 BST, Till! @.> wrote: @till commented on this pull request. > @@ -0,0 +1,11 @@ +repos: Kinda a no no for me. Would defer to CI for that. 🫣 -- Reply to this email directly or view it on GitHub: #2290 (review) You are receiving this because you authored the thread. Message ID: @.>

I looked, and I learned. cc @till

  • This YAML configuration file is for the Precommit pre-commit.com system. A Python-based, YAML-configured set of git hooks.
  • To actually execute this githook, you'd need to install it on the machine it is to run on: https://pre-commit.com/#installation
    • for users that want it, they run the installation - and enjoy the effects
    • for me, I won't install it, I don't have Python on this machine
    • for CI, it'll use some other system
    • so, in effect, this is a "optional, for users of Precommit, the Python-based system" configuration file. Since it's YAML, perhaps a code comment could explain what is using this file, and how to begin using it, if one so desires.

Note the difference in file location: .git/hooks/precommit vs .pre-commit-config.yaml See https://git-scm.com/book/ms/v2/Customizing-Git-Git-Hooks for details.

olleolleolle avatar Aug 20 '25 06:08 olleolleolle

I've updated the commit message to reflect the fact that it's optional

jonodrew avatar Aug 20 '25 06:08 jonodrew

I don't think everyone has to use it - but I will, and it's helpful for me. I don't think it'll impact anyone else on the project, will it?

…

On 19 August 2025 20:19:04 BST, Till! @.> wrote: @till commented on this pull request. > @@ -0,0 +1,11 @@ +repos: Kinda a no no for me. Would defer to CI for that. 🫣 -- Reply to this email directly or view it on GitHub: #2290 (review) You are receiving this because you authored the thread. Message ID: @.>

I looked, and I learned. cc @till

  • This YAML configuration file is for the Precommit pre-commit.com system. A Python-based, YAML-configured set of git hooks.

  • To actually execute this githook, you'd need to install it on the machine it is to run on: https://pre-commit.com/#installation

    • for users that want it, they run the installation - and enjoy the effects

    • for me, I won't install it, I don't have Python on this machine

    • for CI, it'll use some other system

    • so, in effect, this is a "optional, for users of Precommit, the Python-based system" configuration file. Since it's YAML, perhaps a code comment could explain what is using this file, and how to begin using it, if one so desires.

Note the difference in file location: .git/hooks/precommit vs .pre-commit-config.yaml See https://git-scm.com/book/ms/v2/Customizing-Git-Git-Hooks for details.

Thank you, but I already knew.


If we are looking to get to a standard (= how ruby code looks) then I am happy to build a CI job that can run but doesn't fail the build but gives feedback.

Then we can gradually enable rules that may make sense etc..

If this is meant for only one person, then I am not sure that it needs to be checked in. Whatever is checked in becomes status quo usually.

till avatar Aug 20 '25 06:08 till

I'll break this apart. It's clear that the use of pre-commit is more contentious than I anticipated and needs to be discussed somewhere else, but I don't want it blocking the feature development

jonodrew avatar Aug 20 '25 07:08 jonodrew