Compare commits

...

35 Commits

Author SHA1 Message Date
27ab5fc896 Add copyright notice
All checks were successful
Run unit tests / check-licenses (pull_request) Successful in 1m18s
Run unit tests / rubocop (pull_request) Successful in 1m20s
Run unit tests / copyright_notice (pull_request) Successful in 1m55s
Run unit tests / unit_tests (pull_request) Successful in 3m24s
Run unit tests / build-static-assets (pull_request) Successful in 26m0s
2025-01-25 09:14:12 +00:00
60cfbd1a40 Fix markup errors
All checks were successful
Run unit tests / check-licenses (pull_request) Successful in 58s
Run unit tests / rubocop (pull_request) Successful in 1m2s
Run unit tests / copyright_notice (pull_request) Successful in 1m48s
Run unit tests / unit_tests (pull_request) Successful in 4m2s
Run unit tests / build-static-assets (pull_request) Successful in 26m47s
2025-01-25 10:12:36 +01:00
744b13ecb8 Remove incorrect copyright notice
Some checks failed
Run unit tests / check-licenses (pull_request) Successful in 55s
Run unit tests / rubocop (pull_request) Successful in 1m1s
Run unit tests / copyright_notice (pull_request) Failing after 1m27s
Run unit tests / unit_tests (pull_request) Successful in 3m28s
Run unit tests / build-static-assets (pull_request) Has been skipped
2025-01-25 10:11:03 +01:00
d4b95c9c55 Redo migrations after running specs
All checks were successful
Run unit tests / check-licenses (pull_request) Successful in 1m46s
Run unit tests / rubocop (pull_request) Successful in 1m52s
Run unit tests / copyright_notice (pull_request) Successful in 2m17s
Run unit tests / unit_tests (pull_request) Successful in 4m50s
Run unit tests / build-static-assets (pull_request) Successful in 31m44s
2025-01-25 09:52:17 +01:00
c44c3b8ec8 Merge remote-tracking branch 'origin/main' into test-rollbacks
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 1m19s
Run unit tests / check-licenses (pull_request) Successful in 1m24s
Run unit tests / build-static-assets (pull_request) Has been cancelled
Run unit tests / unit_tests (pull_request) Has been cancelled
Run unit tests / copyright_notice (pull_request) Has been cancelled
2025-01-25 09:40:03 +01:00
5b6082fad6 Refine names in CI steps 2025-01-24 09:10:32 +01:00
140555ed68 Do not fail job if there are new copyright assignments
All checks were successful
Run unit tests / rubocop (pull_request) Successful in 1m18s
Run unit tests / check-licenses (pull_request) Successful in 1m20s
Run unit tests / copyright_notice (pull_request) Successful in 1m32s
Run unit tests / unit_tests (pull_request) Successful in 2m42s
Run unit tests / build-static-assets (pull_request) Successful in 10m50s
2025-01-24 09:08:49 +01:00
9724e19954 Restore original version of the migration
Some checks failed
Run unit tests / build-static-assets (pull_request) Has been cancelled
Run unit tests / rubocop (pull_request) Has been cancelled
Run unit tests / check-licenses (pull_request) Has been cancelled
Run unit tests / copyright_notice (pull_request) Has been cancelled
Run unit tests / unit_tests (pull_request) Has been cancelled
2025-01-24 09:08:28 +01:00
c714a49a04 Ignore the full db directory
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 1m12s
Run unit tests / check-licenses (pull_request) Successful in 1m16s
Run unit tests / copyright_notice (pull_request) Successful in 1m59s
Run unit tests / unit_tests (pull_request) Successful in 2m27s
Run unit tests / build-static-assets (pull_request) Has been cancelled
2025-01-24 09:05:24 +01:00
c30b6df0a4 Exclude db/schema.rb from copyright notice
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 33s
Run unit tests / check-licenses (pull_request) Successful in 34s
Run unit tests / copyright_notice (pull_request) Failing after 40s
Run unit tests / unit_tests (pull_request) Failing after 4m36s
Run unit tests / build-static-assets (pull_request) Has been skipped
2025-01-24 09:02:46 +01:00
494431eea6 Add missing variable
Some checks failed
Run unit tests / check-licenses (pull_request) Successful in 56s
Run unit tests / rubocop (pull_request) Successful in 1m32s
Run unit tests / copyright_notice (pull_request) Successful in 1m43s
Run unit tests / unit_tests (pull_request) Failing after 2m50s
Run unit tests / build-static-assets (pull_request) Has been skipped
2025-01-24 08:58:14 +01:00
ac470a802b Redo migrations after running specs
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 52s
Run unit tests / check-licenses (pull_request) Successful in 1m10s
Run unit tests / copyright_notice (pull_request) Successful in 1m37s
Run unit tests / unit_tests (pull_request) Failing after 2m29s
Run unit tests / build-static-assets (pull_request) Has been skipped
2025-01-24 08:55:26 +01:00
139502c69a Show number of migrations added
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 48s
Run unit tests / check-licenses (pull_request) Successful in 1m17s
Run unit tests / copyright_notice (pull_request) Successful in 1m43s
Run unit tests / unit_tests (pull_request) Failing after 2m10s
Run unit tests / build-static-assets (pull_request) Has been skipped
2025-01-24 08:51:02 +01:00
644f35c57f Add a separate action to list changed migrations
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 55s
Run unit tests / check-licenses (pull_request) Successful in 1m10s
Run unit tests / copyright_notice (pull_request) Successful in 1m17s
Run unit tests / unit_tests (pull_request) Failing after 2m0s
Run unit tests / build-static-assets (pull_request) Has been skipped
2025-01-24 08:45:57 +01:00
f08082fb3b Checkout the commit as is in the PR, not if merged into the base
Some checks failed
Run unit tests / copyright_notice (pull_request) Successful in 52s
Run unit tests / check-licenses (pull_request) Failing after 1m5s
Run unit tests / rubocop (pull_request) Failing after 1m5s
Run unit tests / unit_tests (pull_request) Failing after 1m40s
Run unit tests / build-static-assets (pull_request) Has been skipped
2025-01-24 08:39:00 +01:00
3651176bbd Fetch before diff
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 23s
Run unit tests / unit_tests (pull_request) Failing after 1m45s
Run unit tests / build-static-assets (pull_request) Has been skipped
Run unit tests / check-licenses (pull_request) Successful in 43s
Run unit tests / copyright_notice (pull_request) Successful in 1m8s
2025-01-24 00:50:12 +01:00
a12d60e7cb Use PR base SHA
Some checks failed
Run unit tests / copyright_notice (pull_request) Successful in 55s
Run unit tests / check-licenses (pull_request) Successful in 39s
Run unit tests / unit_tests (pull_request) Failing after 1m31s
Run unit tests / rubocop (pull_request) Successful in 23s
Run unit tests / build-static-assets (pull_request) Has been skipped
2025-01-24 00:48:00 +01:00
44590e6889 Fetch branch before comparison
Some checks failed
Run unit tests / unit_tests (pull_request) Failing after 1m38s
Run unit tests / build-static-assets (pull_request) Has been skipped
Run unit tests / rubocop (pull_request) Successful in 36s
Run unit tests / check-licenses (pull_request) Successful in 38s
Run unit tests / copyright_notice (pull_request) Successful in 1m1s
2025-01-24 00:43:46 +01:00
66c5b3a526 Compare number of migrations against base ref
Some checks failed
Run unit tests / copyright_notice (pull_request) Successful in 1m37s
Run unit tests / build-static-assets (pull_request) Has been skipped
Run unit tests / rubocop (pull_request) Successful in 1m18s
Run unit tests / check-licenses (pull_request) Successful in 1m21s
Run unit tests / unit_tests (pull_request) Failing after 1m55s
2025-01-24 00:40:27 +01:00
966998e6c8 Display the number of migrations added
Some checks failed
Run unit tests / unit_tests (pull_request) Failing after 3m18s
Run unit tests / check-licenses (pull_request) Successful in 1m42s
Run unit tests / rubocop (pull_request) Successful in 1m45s
Run unit tests / build-static-assets (pull_request) Has been skipped
Run unit tests / copyright_notice (pull_request) Successful in 2m24s
2025-01-24 00:31:48 +01:00
89bc7fa142 Add copyright notice
Some checks failed
Run unit tests / unit_tests (pull_request) Failing after 3m52s
Run unit tests / build-static-assets (pull_request) Has been skipped
Run unit tests / rubocop (pull_request) Successful in 1m7s
Run unit tests / check-licenses (pull_request) Successful in 1m0s
Run unit tests / copyright_notice (pull_request) Successful in 2m8s
2025-01-23 23:30:49 +00:00
1306a33e8a Fix schema
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 45s
Run unit tests / check-licenses (pull_request) Successful in 47s
Run unit tests / copyright_notice (pull_request) Failing after 1m19s
Run unit tests / unit_tests (pull_request) Successful in 4m1s
Run unit tests / build-static-assets (pull_request) Has been skipped
2025-01-24 00:29:29 +01:00
d35c0353fc Exit if reapplying last migration generates schema changes
Some checks failed
Run unit tests / rubocop (pull_request) Failing after 1m5s
Run unit tests / check-licenses (pull_request) Successful in 1m11s
Run unit tests / copyright_notice (pull_request) Successful in 1m38s
Run unit tests / build-static-assets (pull_request) Has been skipped
Run unit tests / unit_tests (pull_request) Failing after 2m23s
2025-01-24 00:26:02 +01:00
c8f221614a Fix previous migration to make it reversible
All checks were successful
Run unit tests / rubocop (pull_request) Successful in 53s
Run unit tests / copyright_notice (pull_request) Successful in 1m42s
Run unit tests / check-licenses (pull_request) Successful in 49s
Run unit tests / unit_tests (pull_request) Successful in 2m18s
Run unit tests / build-static-assets (pull_request) Successful in 18m5s
2025-01-24 00:19:15 +01:00
7a2feec3cb Display list of migrations
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 1m3s
Run unit tests / unit_tests (pull_request) Failing after 2m32s
Run unit tests / build-static-assets (pull_request) Has been skipped
Run unit tests / check-licenses (pull_request) Successful in 1m7s
Run unit tests / copyright_notice (pull_request) Successful in 1m56s
2025-01-24 00:16:08 +01:00
d5173baca2 Redo last migration
Some checks failed
Run unit tests / unit_tests (pull_request) Failing after 2m18s
Run unit tests / build-static-assets (pull_request) Has been skipped
Run unit tests / check-licenses (pull_request) Successful in 43s
Run unit tests / rubocop (pull_request) Successful in 50s
Run unit tests / copyright_notice (pull_request) Successful in 1m44s
2025-01-24 00:13:07 +01:00
540ba0d59d Restore working version
All checks were successful
Run unit tests / check-licenses (pull_request) Successful in 1m39s
Run unit tests / rubocop (pull_request) Successful in 1m44s
Run unit tests / copyright_notice (pull_request) Successful in 2m36s
Run unit tests / unit_tests (pull_request) Successful in 4m48s
Run unit tests / build-static-assets (pull_request) Successful in 30m15s
2025-01-23 22:46:22 +01:00
bb7d7cbf49 Display last 10 migrations
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 1m9s
Run unit tests / check-licenses (pull_request) Successful in 1m14s
Run unit tests / copyright_notice (pull_request) Successful in 1m40s
Run unit tests / unit_tests (pull_request) Failing after 2m41s
Run unit tests / build-static-assets (pull_request) Has been skipped
2025-01-23 22:43:27 +01:00
fec7efe10a Add copyright notice as part of the same workflow 2025-01-23 22:39:50 +01:00
fe456a3e52 Check licenses as part of the same workflow 2025-01-23 22:38:07 +01:00
798cf564b4 Redo last 5 migrations before running specs
Some checks failed
Check usage of free licenses / check-licenses (pull_request) Successful in 1m46s
Add copyright notice / copyright_notice (pull_request) Successful in 2m25s
Run unit tests / rubocop (pull_request) Successful in 1m8s
Run unit tests / unit_tests (pull_request) Failing after 3m45s
Run unit tests / build-static-assets (pull_request) Has been skipped
2025-01-23 22:36:23 +01:00
e612cf9936 Move docker build into the same workflow
Some checks failed
Run unit tests / reversible_migrations (pull_request) Failing after 4m36s
Run unit tests / build-static-assets (pull_request) Has been skipped
Check usage of free licenses / check-licenses (pull_request) Successful in 1m39s
Add copyright notice / copyright_notice (pull_request) Successful in 3m19s
Run unit tests / rubocop (pull_request) Successful in 1m49s
Run unit tests / unit_tests (pull_request) Successful in 5m34s
2025-01-23 22:24:35 +01:00
db55bafea1 Reuse code to wait for Postgres to be active
Some checks failed
Add copyright notice / copyright_notice (pull_request) Successful in 2m23s
Check usage of free licenses / check-licenses (pull_request) Successful in 1m7s
Run unit tests / rubocop (pull_request) Successful in 3m3s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 50m52s
Run unit tests / unit_tests (pull_request) Successful in 6m1s
Run unit tests / reversible_migrations (pull_request) Failing after 3m20s
2025-01-23 22:21:46 +01:00
f681f8d2f9 Add a new step redoing the last migration
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 1m24s
Add copyright notice / copyright_notice (pull_request) Successful in 2m45s
Run unit tests / unit_tests (pull_request) Successful in 5m2s
Run unit tests / reversible_migrations (pull_request) Failing after 3m32s
Build Nginx-based docker image / build-static-assets (pull_request) Has been cancelled
Check usage of free licenses / check-licenses (pull_request) Successful in 1m19s
2025-01-23 22:12:25 +01:00
da02f37069 Extract rubocop to a separate job in CI
Some checks failed
Build Nginx-based docker image / build-static-assets (pull_request) Has been cancelled
Check usage of free licenses / check-licenses (pull_request) Successful in 54s
Add copyright notice / copyright_notice (pull_request) Successful in 1m32s
Run unit tests / rubocop (pull_request) Successful in 45s
Run unit tests / unit_tests (pull_request) Successful in 2m43s
2025-01-23 22:07:04 +01:00
12 changed files with 134 additions and 127 deletions

View File

@ -1,46 +0,0 @@
name: Build Nginx-based docker image
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build-static-assets:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to the private Docker registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.PRIVATE_REGISTRY_HOST }}
username: ${{ secrets.PRIVATE_REGISTRY_USERNAME }}
password: ${{ secrets.PRIVATE_REGISTRY_TOKEN }}
- name: Build and push intermediate stages (build)
uses: docker/build-push-action@v6
with:
context: .
target: build
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:build
cache-from: type=registry,ref=${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:build
cache-to: type=inline
- name: Build and push (final)
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:latest
cache-from: type=registry,ref=${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:latest
cache-to: type=inline

View File

@ -1,39 +0,0 @@
name: Add copyright notice
on:
pull_request:
permissions:
contents: write
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
copyright_notice:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.ACTIONS_TOKEN }}
ref: ${{ github.head_ref }}
- uses: VinnyBabuManjaly/copyright-action@v1.0.0
with:
CopyrightString: '# Copyright (C) 2024-2025 LibreWeddingPlanner contributors\n\n'
FileType: '.rb'
Path: 'app/, config/, db/, spec/'
- uses: VinnyBabuManjaly/copyright-action@v1.0.0
with:
CopyrightString: '<%# Copyright (C) 22024-2025 LibreWeddingPlanner contributors %>\n\n'
FileType: '.erb'
Path: 'app/'
- name: Commit changes
run: |
git config --local user.email "bustikiller@bustikiller.com"
git config --local user.name "Manuel Bustillo"
git add .
if [ -n "$(git status --porcelain)" ]; then
echo "there are changes";
git commit -m "Add copyright notice"
git push
else
echo "no changes";
fi

View File

@ -1,21 +0,0 @@
name: Check usage of free licenses
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
check-licenses:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: ruby/setup-ruby@v1.207.0
- name: Install project dependencies
run: bundle install --jobs `getconf _NPROCESSORS_ONLN`
- name: Run license finder
run: license_finder

View File

@ -10,7 +10,7 @@ concurrency:
jobs:
unit_tests:
runs-on: ubuntu-latest
services:
services: &services
postgres:
image: postgres
env:
@ -22,10 +22,11 @@ jobs:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.head_ref }} # Checkout the actual branch, not the result if merged into the base
- uses: ruby/setup-ruby@v1.207.0
- run: bundle install
- run: bundle exec rubocop --force-exclusion --parallel
- name: Wait until Postgres is ready to accept connections
- &postgres_wait
name: Wait until Postgres is ready to accept connections
run: |
apt-get update && apt-get install -f -y postgresql-client
until pg_isready -h postgres -U postgres -d postgres
@ -33,12 +34,126 @@ jobs:
sleep 1
echo "Trying again"
done
- run: |
- name: Load schema and run unit tests
run: |
bundle exec rake db:schema:load
bundle exec rspec
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
- name: Get all migrations added
id: changed-migration-files
uses: tj-actions/changed-files@v45
with:
files: |
db/migrate/**.rb
- name: Redo all migrations and check there are no schema changes
if: steps.changed-migration-files.outputs.any_changed == 'true'
env:
ALL_CHANGED_FILES: ${{ steps.changed-migration-files.outputs.all_changed_files }}
RAILS_ENV: test
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
run: |
echo ${#ALL_CHANGED_FILES[@]} migrations changed:
for file in ${ALL_CHANGED_FILES}; do
echo "$file"
done
bundle exec rake db:migrate:redo STEP=${#ALL_CHANGED_FILES[@]}
git diff --exit-code db/schema.rb
- name: Clean up containers generated by this flow
if: failure()
run: docker ps --filter network=$JOB_CONTAINER_NAME-$GITHUB_JOB-network --filter name=$JOB_CONTAINER_NAME-* --format "{{.ID}}" | xargs docker rm -f
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: ruby/setup-ruby@v1.207.0
- run: bundle install
- run: bundle exec rubocop --force-exclusion --parallel
check-licenses:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: ruby/setup-ruby@v1.207.0
- name: Install project dependencies
run: bundle install --jobs `getconf _NPROCESSORS_ONLN`
- name: Run license finder
run: license_finder
copyright_notice:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.ACTIONS_TOKEN }}
ref: ${{ github.head_ref }}
- uses: VinnyBabuManjaly/copyright-action@v1.0.0
with:
CopyrightString: '# Copyright (C) 2024-2025 LibreWeddingPlanner contributors\n\n'
FileType: '.rb'
Path: 'app/, config/, db/, spec/'
IgnorePath: 'db'
- uses: VinnyBabuManjaly/copyright-action@v1.0.0
with:
CopyrightString: '<%# Copyright (C) 2024-2025 LibreWeddingPlanner contributors %>\n\n'
FileType: '.erb'
Path: 'app/'
- name: Commit changes
run: |
git config --local user.email "bustikiller@bustikiller.com"
git config --local user.name "Manuel Bustillo"
git add .
if [ -n "$(git status --porcelain)" ]; then
echo "there are changes";
git commit -m "Add copyright notice"
git push
else
echo "no changes";
fi
build-static-assets:
runs-on: ubuntu-latest
timeout-minutes: 30
needs:
- unit_tests
- rubocop
- check-licenses
- copyright_notice
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to the private Docker registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.PRIVATE_REGISTRY_HOST }}
username: ${{ secrets.PRIVATE_REGISTRY_USERNAME }}
password: ${{ secrets.PRIVATE_REGISTRY_TOKEN }}
- name: Build and push intermediate stages (build)
uses: docker/build-push-action@v6
with:
context: .
target: build
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:build
cache-from: type=registry,ref=${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:build
cache-to: type=inline
- name: Build and push (final)
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:latest
cache-from: type=registry,ref=${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:latest
cache-to: type=inline

View File

@ -1,6 +1,6 @@
<%# Copyright (C) 22024-2025 LibreWeddingPlanner contributors %>
<%# Copyright (C) 2024-2025 LibreWeddingPlanner contributors %>
<%<%<%<!DOCTYPE html>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

View File

@ -1,3 +1,3 @@
<%# Copyright (C) 22024-2025 LibreWeddingPlanner contributors %>
<%# Copyright (C) 2024-2025 LibreWeddingPlanner contributors %>
<%<%<%<%= yield %>
<%= yield %>

View File

@ -1,6 +1,6 @@
<%# Copyright (C) 22024-2025 LibreWeddingPlanner contributors %>
<%# Copyright (C) 2024-2025 LibreWeddingPlanner contributors %>
<%<%<%<p>Welcome <%= @email %>!</p>
<p>Welcome <%= @email %>!</p>
<p>You can confirm your account email through the link below:</p>

View File

@ -1,6 +1,6 @@
<%# Copyright (C) 22024-2025 LibreWeddingPlanner contributors %>
<%# Copyright (C) 2024-2025 LibreWeddingPlanner contributors %>
<%<%<%<p>Hello <%= @email %>!</p>
<p>Hello <%= @email %>!</p>
<% if @resource.try(:unconfirmed_email?) %>
<p>We're contacting you to notify you that your email is being changed to <%= @resource.unconfirmed_email %>.</p>

View File

@ -1,5 +1,5 @@
<%# Copyright (C) 22024-2025 LibreWeddingPlanner contributors %>
<%# Copyright (C) 2024-2025 LibreWeddingPlanner contributors %>
<%<%<%<p>Hello <%= @resource.email %>!</p>
<p>Hello <%= @resource.email %>!</p>
<p>We're contacting you to notify you that your password has been changed.</p>

View File

@ -1,6 +1,6 @@
<%# Copyright (C) 22024-2025 LibreWeddingPlanner contributors %>
<%# Copyright (C) 2024-2025 LibreWeddingPlanner contributors %>
<%<%<%<p>Hello <%= @resource.email %>!</p>
<p>Hello <%= @resource.email %>!</p>
<p>Someone has requested a link to change your password. You can do this through the link below.</p>

View File

@ -1,6 +1,6 @@
<%# Copyright (C) 22024-2025 LibreWeddingPlanner contributors %>
<%# Copyright (C) 2024-2025 LibreWeddingPlanner contributors %>
<%<%<%<p>Hello <%= @resource.email %>!</p>
<p>Hello <%= @resource.email %>!</p>
<p>Your account has been locked due to an excessive number of unsuccessful sign in attempts.</p>

4
db/schema.rb generated
View File

@ -1,5 +1,3 @@
# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
@ -39,7 +37,7 @@ ActiveRecord::Schema[8.0].define(version: 2024_12_16_231415) do
t.index "LEAST(group_a_id, group_b_id), GREATEST(group_a_id, group_b_id)", name: "uindex_group_pair", unique: true
t.index ["group_a_id"], name: "index_group_affinities_on_group_a_id"
t.index ["group_b_id"], name: "index_group_affinities_on_group_b_id"
t.check_constraint "discomfort >= 0::double precision AND discomfort <= 2::double precision"
t.check_constraint "discomfort >= 0::double precision AND discomfort <= 2::double precision", name: "check_valid_discomfort"
t.check_constraint "group_a_id <> group_b_id", name: "check_distinct_groups"
end