#Drop single-use service name constants i...
1 messages · Page 1 of 1 (latest)
However, I have my doubts on this change and it being done everywhere
- There is no direct benefit
- The constant is actually used more than once (this PR shows it, it is used in tests)
- We have discussed using a services/actions string enum per component/integration to collect them instead in the past (a few exmaples/occurances of those exists actually in our codebase).
wdyt @lean matrix @valid igloo @last axle @blazing wedge
So we talked about this briefly in slack this week. And the conclusion kinda was like, yes, one could rename a constant value and it'd break setups and you wouldn't notice it
This came from a discussion I had with @valid igloo
Although it was more about "going forward", there is no much "copy-pasting" (that's the way it's done on integration X so I did it the same on integration Y) that I felt it was better to clean it up retrospectively as well (but not urgent)
Sure but that is like saying: Constants are bad 🤷♂️
While I do see a risk. I think it's a bit meh because reviewers know what to look for. If someone was renaming a DOMAIN, we'd flag that as well. We'd do the same with services IMO
We should get a role for Core, so we can easily tag ourselves
Haha yeah, I wrote exactly that down when I was writing that line