Closed (works as designed)
Project:
Entity Registration
Version:
3.3.x-dev
Component:
Registration Core
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2025 at 20:24 UTC
Updated:
12 Jan 2025 at 17:56 UTC
Jump to comment: Most recent
Comments
Comment #2
kul.pratap commented@jonathanshaw The HostEntity::isAvailableForRegistration method is not present in either the HostEntity.php class or the HostEntityInterface.php. Should we implement this function first to use it in RegisterAccessCheck? Additionally, could you provide some details on what functionality this method should perform?
Comment #3
jonathanshawComment #4
jonathanshawComment #5
jonathanshawisAvailableForRegistration() is now in 3.3.x-dev HEAD.
Comment #6
kul.pratap commentedComment #7
john.oltman commentedPlease hold on this as it will likely become a won't do along with #3497728. Will explain end of week.
Comment #8
john.oltman commentedI'm closing this because it
has serious side effectsreduces flexibility for site builders:1) As noted in the comments for #3464736, "sometimes it's confusing to users to hide options that previously existed". The existing access control gives site admins the option to keep the register route enabled after the close date, or if capacity is reached, so that messages on the register page can explain why registration is no longer allowed. Completing this task would remove that as an option.
2) It creates performance issues when combined with #3497728. I left a comment on that issue with further explanation.Comment #9
john.oltman commentedI edited my previous comment, since I misread the proposal for cache expiry based on open/close dates. I still think we should not do this task though, as noted. We can reopen if there is a compelling counter argument.
Comment #10
jonathanshawInteresting. I'm broadly sympathetic to what you're saying.
So we actually have 3 scenarios currently:
- by default, the register links or tabs are always shown
- if the site owner enables set_and_forget then they are shown/hidden based on open/close alone (not capacity)
- a developer could chang the route access and use HostEntity::isAvailableForRegistration()
I will leave this as closed, and have related discussion in #3499231: Show causes with registration link and form and #3497731: Deprecate the "set and forget" feature.