neiam
/vigil
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
Log in to mark this repository.
Slice 0: organizations, teams, projects, DSN keys, API tokens, group sync
7bff5e7 · gmorell · 2026-12-01 21:43
Message
{commit_body(@commit)}
Files changed
added
NOTICE.md
+66
−0
| 1 | +# Notices | |
| 2 | + | |
| 3 | +Vigil is a Sentry-compatible error tracker. Parts of it are ported from, or | |
| 4 | +modelled on, the projects below, whose notices are kept here as their | |
| 5 | +licenses require. | |
| 6 | + | |
| 7 | +## GlitchTip | |
| 8 | + | |
| 9 | +Organization roles and their scopes (`Vigil.Organizations.Roles`), the data | |
| 10 | +model of organizations, teams, projects and keys, and the ingest and | |
| 11 | +processing design described in ROADMAP.md. | |
| 12 | + | |
| 13 | +> MIT License | |
| 14 | +> | |
| 15 | +> Copyright (c) 2019 GlitchTip | |
| 16 | +> | |
| 17 | +> Permission is hereby granted, free of charge, to any person obtaining a copy | |
| 18 | +> of this software and associated documentation files (the "Software"), to deal | |
| 19 | +> in the Software without restriction, including without limitation the rights | |
| 20 | +> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| 21 | +> copies of the Software, and to permit persons to whom the Software is | |
| 22 | +> furnished to do so, subject to the following conditions: | |
| 23 | +> | |
| 24 | +> The above copyright notice and this permission notice shall be included in all | |
| 25 | +> copies or substantial portions of the Software. | |
| 26 | +> | |
| 27 | +> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 28 | +> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 29 | +> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| 30 | +> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| 31 | +> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| 32 | +> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
| 33 | +> SOFTWARE. | |
| 34 | + | |
| 35 | +## Sentry (2019-11-06, BSD-3-Clause) | |
| 36 | + | |
| 37 | +The role definitions GlitchTip credits to `sentry/conf/server.py`, and (from | |
| 38 | +slice 2) event normalisation, grouping strategies, culprit and title rules. | |
| 39 | +Only the BSD-licensed Sentry server of November 2019 is used; later, | |
| 40 | +BSL-licensed Sentry server code is not. | |
| 41 | + | |
| 42 | +> Copyright (c) 2019 Sentry (https://sentry.io) and individual contributors. | |
| 43 | +> All rights reserved. | |
| 44 | +> | |
| 45 | +> Redistribution and use in source and binary forms, with or without | |
| 46 | +> modification, are permitted provided that the following conditions are met: | |
| 47 | +> | |
| 48 | +> 1. Redistributions of source code must retain the above copyright notice, | |
| 49 | +> this list of conditions and the following disclaimer. | |
| 50 | +> 2. Redistributions in binary form must reproduce the above copyright notice, | |
| 51 | +> this list of conditions and the following disclaimer in the documentation | |
| 52 | +> and/or other materials provided with the distribution. | |
| 53 | +> 3. Neither the name Sentry nor the names of its contributors may be used to | |
| 54 | +> endorse or promote products derived from this software without specific | |
| 55 | +> prior written permission. | |
| 56 | +> | |
| 57 | +> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | |
| 58 | +> AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
| 59 | +> IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |
| 60 | +> DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | |
| 61 | +> FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
| 62 | +> DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |
| 63 | +> SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | |
| 64 | +> CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |
| 65 | +> OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
| 66 | +> OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
modified
ROADMAP.md
+1
−1
| 193 | 193 | |
| 194 | 194 | ## Slices |
| 195 | 195 | |
| 196 | −### 0. Foundations: orgs, projects, keys, tokens · medium | |
| 196 | +### 0. Foundations: orgs, projects, keys, tokens · medium · **done** | |
| 197 | 197 | - Add Oban (Postgres engine, Pruner, Lifeline, Cron) and a `NOTICE.md`. |
| 198 | 198 | - **Organizations:** slug unique, reserved words blocked; `accepting_events`; `scrub_ip`. |
| 199 | 199 | - **Org members:** user, org, role. Roles are member, admin, manager and owner, each with a scope set as in GlitchTip. |
modified
config/config.exs
+16
−0
Click to load diff…
modified
config/runtime.exs
+10
−0
Click to load diff…
modified
config/test.exs
+6
−0
Click to load diff…
modified
lib/vigil/accounts/scope.ex
+37
−14
Click to load diff…
added
lib/vigil/api_tokens.ex
+67
−0
Click to load diff…
added
lib/vigil/api_tokens/api_token.ex
+61
−0
Click to load diff…
modified
lib/vigil/application.ex
+24
−0
Click to load diff…
modified
lib/vigil/neiam_auth_adapter.ex
+21
−5
Click to load diff…
added
lib/vigil/organizations.ex
+555
−0
Click to load diff…
added
lib/vigil/organizations/audit_event.ex
+19
−0
Click to load diff…
added
lib/vigil/organizations/group_rule.ex
+49
−0
Click to load diff…
added
lib/vigil/organizations/group_sync.ex
+289
−0
Click to load diff…
added
lib/vigil/organizations/invite.ex
+71
−0
Click to load diff…
added
lib/vigil/organizations/member.ex
+30
−0
Click to load diff…
added
lib/vigil/organizations/organization.ex
+45
−0
Click to load diff…
added
lib/vigil/organizations/roles.ex
+75
−0
Click to load diff…
added
lib/vigil/organizations/team.ex
+36
−0
Click to load diff…
added
lib/vigil/partitions.ex
+162
−0
Click to load diff…
added
lib/vigil/partitions/maintain_worker.ex
+17
−0
Click to load diff…
added
lib/vigil/projects.ex
+192
−0
Click to load diff…
added
lib/vigil/projects/platforms.ex
+74
−0
Click to load diff…
added
lib/vigil/projects/project.ex
+35
−0
Click to load diff…
added
lib/vigil/projects/project_key.ex
+47
−0
Click to load diff…
added
lib/vigil/slug.ex
+65
−0
Click to load diff…
added
lib/vigil_web/api/auth.ex
+72
−0
Click to load diff…
added
lib/vigil_web/api/v0/index_controller.ex
+36
−0
Click to load diff…
added
lib/vigil_web/api/v0/organization_controller.ex
+62
−0
Click to load diff…
modified
lib/vigil_web/components/layouts.ex
+76
−11
Click to load diff…
added
lib/vigil_web/controllers/org_invite_controller.ex
+144
−0
Click to load diff…
added
lib/vigil_web/live/api_token_live.ex
+170
−0
Click to load diff…
modified
lib/vigil_web/live/home_live.ex
+41
−2
Click to load diff…
added
lib/vigil_web/live/org_invite_live.ex
+132
−0
Click to load diff…
added
lib/vigil_web/live/org_live/index.ex
+89
−0
Click to load diff…
added
lib/vigil_web/live/org_live/show.ex
+78
−0
Click to load diff…
added
lib/vigil_web/live/org_settings_live/audit.ex
+54
−0
Click to load diff…
added
lib/vigil_web/live/org_settings_live/components.ex
+53
−0
Click to load diff…
added
lib/vigil_web/live/org_settings_live/general.ex
+87
−0
Click to load diff…
added
lib/vigil_web/live/org_settings_live/groups.ex
+190
−0
Click to load diff…
added
lib/vigil_web/live/org_settings_live/invites.ex
+199
−0
Click to load diff…
added
lib/vigil_web/live/org_settings_live/members.ex
+126
−0
Click to load diff…
added
lib/vigil_web/live/org_settings_live/teams.ex
+226
−0
Click to load diff…
added
lib/vigil_web/live/project_live/new.ex
+105
−0
Click to load diff…
added
lib/vigil_web/live/project_live/settings.ex
+309
−0
Click to load diff…
added
lib/vigil_web/live/project_live/show.ex
+98
−0
Click to load diff…
added
lib/vigil_web/org_auth.ex
+49
−0
Click to load diff…
modified
lib/vigil_web/router.ex
+56
−0
Click to load diff…
modified
mix.exs
+3
−0
Click to load diff…
modified
mix.lock
+1
−0
Click to load diff…
added
priv/repo/migrations/20261201211940_add_oban_jobs.exs
+9
−0
Click to load diff…
added
priv/repo/migrations/20261201212155_create_organizations_and_projects.exs
+197
−0
Click to load diff…
added
test/support/fixtures/organizations_fixtures.ex
+55
−0
Click to load diff…
added
test/vigil/api_tokens_test.exs
+31
−0
Click to load diff…
added
test/vigil/organizations/group_sync_test.exs
+130
−0
Click to load diff…
added
test/vigil/organizations_test.exs
+181
−0
Click to load diff…
added
test/vigil/partitions_test.exs
+66
−0
Click to load diff…
added
test/vigil/projects_test.exs
+73
−0
Click to load diff…
added
test/vigil_web/api/api_v0_test.exs
+75
−0
Click to load diff…
modified
test/vigil_web/controllers/neiam_auth_test.exs
+44
−1
Click to load diff…
added
test/vigil_web/live/api_token_live_test.exs
+24
−0
Click to load diff…
added
test/vigil_web/live/org_invite_test.exs
+73
−0
Click to load diff…
added
test/vigil_web/live/org_live_test.exs
+87
−0
Click to load diff…
added
test/vigil_web/live/org_settings_live_test.exs
+86
−0
Click to load diff…
Parents: d8ccd1c