Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/ISSUE_TEMPLATE/privileged.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/add-to-project.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/issue-manager.yml

This file was deleted.

14 changes: 14 additions & 0 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,17 @@ The email templates are in `./backend/app/email-templates/`. Here, there are two
Before continuing, ensure you have the [MJML extension](https://marketplace.visualstudio.com/items?itemName=attilabuti.vscode-mjml) installed in your VS Code.

Once you have the MJML extension installed, you can create a new email template in the `src` directory. After creating the new email template and with the `.mjml` file open in your editor, open the command palette with `Ctrl+Shift+P` and search for `MJML: Export to HTML`. This will convert the `.mjml` file to a `.html` file and now you can save it in the build directory.

## Additions

OpenFGA helps to streamline and standardize the permissions structure on the backend. Controlling access to database objects using 1 comprehensive mapping.

To deploy using OpenFGA in the backend, currently, compose does not support automation function passing backend configuration details to the environment at runtime. In other words, you'll have to start OpenFGA, input the env variabls OPENFGA_STORE_ID and OPENFGA_AUTHORIZATION_MODEL_ID, then finally deploy the rest of the containers.

```bash
docker compose -f docker-compose.fga.yml up -d
```

```bash
docker compose up -d --build
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
"""Add metadata fields to Item

Revision ID: bc408f47ce8b
Revises: 1a31ce608336
Create Date: 2025-06-16 19:13:48.082374

"""
from alembic import op
import sqlalchemy as sa
import sqlmodel.sql.sqltypes


# revision identifiers, used by Alembic.
revision = 'bc408f47ce8b'
down_revision = '1a31ce608336'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('item', sa.Column('location', sqlmodel.sql.sqltypes.AutoString(length=255), nullable=True))
op.add_column('item', sa.Column('price', sqlmodel.sql.sqltypes.AutoString(length=255), nullable=True))
op.add_column('item', sa.Column('difficulty', sqlmodel.sql.sqltypes.AutoString(length=255), nullable=True))
op.add_column('item', sa.Column('type', sqlmodel.sql.sqltypes.AutoString(length=255), nullable=True))
op.add_column('item', sa.Column('category', sqlmodel.sql.sqltypes.AutoString(length=255), nullable=True))
op.add_column('item', sa.Column('tags', sa.ARRAY(sa.String()), nullable=True))
op.add_column('item', sa.Column('link', sqlmodel.sql.sqltypes.AutoString(length=255), nullable=True))
op.add_column('item', sa.Column('picture', sqlmodel.sql.sqltypes.AutoString(length=255), nullable=True))
op.add_column('item', sa.Column('in_featured', sa.Boolean(), nullable=False))
op.add_column('item', sa.Column('rating', sa.Float(), nullable=True))
op.add_column('item', sa.Column('tries', sa.Integer(), nullable=True))
op.add_column('item', sa.Column('favorites', sa.Integer(), nullable=True))
op.add_column('item', sa.Column('duration', sa.Interval(), nullable=True))
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('item', 'favorites')
op.drop_column('item', 'tries')
op.drop_column('item', 'rating')
op.drop_column('item', 'in_featured')
op.drop_column('item', 'picture')
op.drop_column('item', 'link')
op.drop_column('item', 'tags')
op.drop_column('item', 'category')
op.drop_column('item', 'type')
op.drop_column('item', 'difficulty')
op.drop_column('item', 'price')
op.drop_column('item', 'location')
op.drop_column('item', 'duration')
# ### end Alembic commands ###
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
"""Add column to item model

Revision ID: f77762e21457
Revises: bc408f47ce8b
Create Date: 2025-06-25 14:30:07.278621

"""
from alembic import op
import sqlalchemy as sa
import sqlmodel.sql.sqltypes


# revision identifiers, used by Alembic.
revision = 'f77762e21457'
down_revision = 'bc408f47ce8b'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('item', sa.Column('duration', sa.Interval(), nullable=True))
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('item', 'duration')
# ### end Alembic commands ###
Loading
Loading