Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
- uses: isort/isort-action@master
with:
requirementsFiles: "requirements.txt requirements.dev.txt"
- uses: psf/black@stable
- uses: psf/black@23.11.0
Comment thread
RedstoneEnjoyer marked this conversation as resolved.
- name: Comment if linting failed
if: failure()
id: comment
Expand Down
2 changes: 1 addition & 1 deletion migrations/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def run_migrations_online():

"""
configuration = config.get_section(config.config_ini_section)
configuration["sqlalchemy.url"] = os.getenv("DB_DSN", "postgresql://postgres:12345@postgres:5432/postgres")
configuration["sqlalchemy.url"] = os.getenv("DB_DSN", "postgresql://postgres:12345@postgres::5432/postgres")
connectable = engine_from_config(
configuration,
prefix="sqlalchemy.",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
"""user_view_type_fix

Revision ID: 1a5ed9901423
Revises: ac67f7273994
Create Date: 2026-02-03 18:53:36.874014

"""

import os

import sqlalchemy as sa
from alembic import op


# revision identifiers, used by Alembic.
revision = '1a5ed9901423'
down_revision = 'ac67f7273994'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('profcomff_team', sa.Column('type', sa.String(), nullable=True), schema='STG_GITHUB')
op.add_column('profcomff_team', sa.Column('organization_id', sa.Integer(), nullable=True), schema='STG_GITHUB')
op.add_column('profcomff_team_member', sa.Column('user_view_type', sa.String(), nullable=True), schema='STG_GITHUB')
op.add_column(
'profcomff_team_repo', sa.Column('owner_user_view_type', sa.String(), nullable=True), schema='STG_GITHUB'
)
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('profcomff_team_repo', 'owner_user_view_type', schema='STG_GITHUB')
op.drop_column('profcomff_team_member', 'user_view_type', schema='STG_GITHUB')
op.drop_column('profcomff_team', 'organization_id', schema='STG_GITHUB')
op.drop_column('profcomff_team', 'type', schema='STG_GITHUB')
# ### end Alembic commands ###
4 changes: 4 additions & 0 deletions profcomff_definitions/STG/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ class ProfcomffTeam(Base):
repositories_url: Mapped[str | None]
permission: Mapped[str | None]
parent: Mapped[str | None]
type: Mapped[str | None]
organization_id: Mapped[int | None]


class ProfcomffTeamMember(Base):
Expand All @@ -271,6 +273,7 @@ class ProfcomffTeamMember(Base):
received_events_url: Mapped[str | None]
type: Mapped[str | None]
site_admin: Mapped[bool | None]
user_view_type: Mapped[str | None]


class ProfcomffTeamRepo(Base):
Expand Down Expand Up @@ -379,6 +382,7 @@ class ProfcomffTeamRepo(Base):
permissions_pull: Mapped[str | None]
role_name: Mapped[str | None]
license: Mapped[str | None]
owner_user_view_type: Mapped[str | None]


class ProfcomffCommit(Base):
Expand Down
2 changes: 1 addition & 1 deletion requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
definitions_lib
autoflake
black
black==23.11.0
setuptools
flake8
httpx
Expand Down
Loading