!zghijEASpYQWYFzriI:nixos.org

Hydra

372 Members
108 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
15 Nov 2022
@linus:schreibt.jetzt@linus:schreibt.jetzt wait no actually project membership is project ownership 10:56:27
@linus:schreibt.jetzt@linus:schreibt.jetztI think10:56:33
@aciceri:nixos.devaciceri isProjectOwner doesn't use the projectmembers table? 10:56:37
@linus:schreibt.jetzt@linus:schreibt.jetzt
sub isProjectOwner {
    my ($c, $project) = @_;
    return
        $c->user_exists &&
        (isAdmin($c) ||
         $c->user->username eq $project->owner->username ||
         defined $c->model('DB::ProjectMembers')->find({ project => $project, userName => $c->user->username }));
}
10:56:39
@linus:schreibt.jetzt@linus:schreibt.jetztyeah10:56:41
@aciceri:nixos.devaciceriperfect! Then this is doable somehow10:57:37
@aciceri:nixos.devaciceriI just need to move everything to different projects now10:58:18
@aciceri:nixos.devaciceriNot sure I'll do, just wanted to know it made sense10:58:40
@linus:schreibt.jetzt@linus:schreibt.jetzt as for declarative management of a hydra instance, may I suggest the terraform provider (maintained by my employer but I've been using it since before I worked there :D ) 10:58:47
@linus:schreibt.jetzt@linus:schreibt.jetzt ma27 has some nice wrapping code that makes it more pleasant to use with terranix 10:59:32
@linus:schreibt.jetzt@linus:schreibt.jetzt(not sure if he's published it)10:59:44
@linus:schreibt.jetzt@linus:schreibt.jetzthm, it doesn't support adding users to projects though11:00:50
@aciceri:nixos.devaciceri uhhh interesting, we use terraform actually without terranix) but our Hydra installation is very customized, not sure it's worth using like this but thank for the information 😀 11:01:14
@aciceri:nixos.devaciceri * uhhh interesting, we use terraform actually (without terranix) but our Hydra installation is very customized, not sure it's worth using like this but thank for the information 😀 11:01:25

Show newer messages


Back to Room ListRoom Version: 6