-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into issue/856
- Loading branch information
Showing
61 changed files
with
2,778 additions
and
3,829 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: test ooniapi/oonimeasurements | ||
on: push | ||
jobs: | ||
run_tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install hatch | ||
run: pip install hatch | ||
|
||
- name: Run all tests | ||
run: make test-cov | ||
working-directory: ./ooniapi/services/oonimeasurements/ | ||
|
||
- name: Upload coverage to codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
flags: oonimeasurements | ||
working-directory: ./ooniapi/services/oonimeasurements/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
ooniapi/common/src/common/alembic/versions/a037e908f3a0_init_oonifindings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
"""init oonifindings | ||
Revision ID: a037e908f3a0 | ||
Revises: c9119c05cf42 | ||
Create Date: 2024-07-17 16:45:25.752551 | ||
""" | ||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = 'a037e908f3a0' | ||
down_revision: Union[str, None] = "c9119c05cf42" | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.create_table( | ||
"oonifinding", | ||
sa.Column( | ||
"finding_id", | ||
sa.String(), | ||
nullable=False, | ||
primary_key=True, | ||
), | ||
sa.Column("finding_slug", sa.String(), nullable=True), | ||
sa.Column("create_time", sa.DateTime(timezone=True), nullable=False), | ||
sa.Column("update_time", sa.DateTime(timezone=True), nullable=False), | ||
sa.Column("start_time", sa.DateTime(timezone=True), nullable=True), | ||
sa.Column("end_time", sa.DateTime(timezone=True), nullable=True), | ||
sa.Column("creator_account_id", sa.String(), nullable=False), | ||
sa.Column("title", sa.String(), nullable=False), | ||
sa.Column("short_description", sa.String(), nullable=False), | ||
sa.Column("text", sa.String(), nullable=False), | ||
sa.Column("reported_by", sa.String(), nullable=False), | ||
sa.Column("email_address", sa.String(), nullable=False), | ||
sa.Column("event_type", sa.String(), nullable=False), | ||
sa.Column("published", sa.Integer(), nullable=False), | ||
sa.Column("deleted", sa.Integer(), nullable=False, default=0), | ||
sa.Column("country_codes", sa.JSON(), nullable=True), | ||
sa.Column("asns", sa.JSON(), nullable=True), | ||
sa.Column("domains", sa.JSON(), nullable=True), | ||
sa.Column("tags", sa.JSON(), nullable=True), | ||
sa.Column("links", sa.JSON(), nullable=True), | ||
sa.Column("test_names", sa.JSON(), nullable=True), | ||
) | ||
|
||
|
||
def downgrade() -> None: | ||
op.drop_table("oonifinding") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
ooniapi/services/measurements/src/measurements/dependencies.py
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.