Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🍝 SonyCiAsset #36

Merged
merged 40 commits into from
Jul 10, 2023
Merged

🍝 SonyCiAsset #36

merged 40 commits into from
Jul 10, 2023

Conversation

mrharpo
Copy link
Contributor

@mrharpo mrharpo commented May 16, 2023

SonyCiAsset

Adds SonyCiAsset model

SonyCiAssetView

Adds view for SonyCiAssets

Enums

  • MediaType
    • Video, Audio
  • ThumbnailType
    • large, medium, small, standard, video-sd, video-3g

@mrharpo mrharpo added documentation 📜 Improvements or additions to documentation enhancement ➕ New feature or request labels May 16, 2023
@mrharpo mrharpo added this to the v0.3 Pipeline 🚰 milestone May 16, 2023
@mrharpo mrharpo requested a review from afred May 16, 2023 21:59
@mrharpo mrharpo self-assigned this May 16, 2023
@codecov-commenter
Copy link

codecov-commenter commented May 16, 2023

Codecov Report

Merging #36 (058600a) into main (715db40) will increase coverage by 1.92%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #36      +/-   ##
==========================================
+ Coverage   82.87%   84.80%   +1.92%     
==========================================
  Files           9        9              
  Lines         292      329      +37     
==========================================
+ Hits          242      279      +37     
  Misses         50       50              
Impacted Files Coverage Δ
chowda/app.py 100.00% <100.00%> (ø)
chowda/config.py 100.00% <100.00%> (ø)
chowda/models.py 90.22% <100.00%> (+2.60%) ⬆️
chowda/views.py 89.18% <100.00%> (+0.61%) ⬆️
tests/factories.py 70.58% <100.00%> (+0.29%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@mrharpo mrharpo temporarily deployed to Codecov May 17, 2023 14:16 — with GitHub Actions Inactive
@mrharpo mrharpo temporarily deployed to Codecov May 17, 2023 14:16 — with GitHub Actions Inactive
@mrharpo mrharpo temporarily deployed to Codecov May 17, 2023 14:57 — with GitHub Actions Inactive
@mrharpo mrharpo temporarily deployed to Codecov May 17, 2023 14:57 — with GitHub Actions Inactive
chowda/models.py Outdated
__tablename__ = 'media_files'
id: Optional[int] = Field(primary_key=True)
id: Optional[str] = Field(primary_key=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we keep the sonyci_id as it's own field (not primary key) it'll be easier to use Chowda with media from other locations later on.

Is there a specific benefit to making the Sony Ci ID the id field rather than it's own, unique, indexed sonyci_id field?

"def batch_ingest_session(n):\n",
" with Session(engine) as session:\n",
" batch = get_batch(n)\n",
" media = [MediaFile(guid=asset['name'], id=asset['id']) for asset in batch]\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

guid will need to be mapped from a filename like cpb-aacip-123-45678.rando-filename-arbitrariness.mp4.mp4 to cpb-aacip-123-45678... regex ftw!

"metadata": {},
"outputs": [],
"source": [
"def get_batch(n):\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we pull this out of a notebook and into real code, we may want to consider different terminology than batch to avoid confusion with the db model

Base automatically changed from coverage to main May 17, 2023 16:32
@mrharpo mrharpo temporarily deployed to Codecov May 17, 2023 16:38 — with GitHub Actions Inactive
@mrharpo mrharpo temporarily deployed to Codecov May 17, 2023 16:38 — with GitHub Actions Inactive
afred and others added 4 commits May 17, 2023 16:20
* Adds a Chowda db model for storing Sony Ci Asset JSON to be related to Chowda MediaFile models.
* Adds SonyCiAsset model to Starlette admin UI.

Also,
* Adds ci.toml to .gitignore.

Co-authored-by: Harpo <ryan@dellarteproductions.com>

Adds model
@mrharpo mrharpo temporarily deployed to Codecov July 7, 2023 15:27 — with GitHub Actions Inactive
@mrharpo mrharpo temporarily deployed to Codecov July 7, 2023 15:27 — with GitHub Actions Inactive
@mrharpo mrharpo temporarily deployed to Codecov July 7, 2023 15:32 — with GitHub Actions Inactive
@mrharpo mrharpo temporarily deployed to Codecov July 7, 2023 15:32 — with GitHub Actions Inactive
@mrharpo mrharpo changed the title 🍝 Ingest 🍝 SonyCiAsset Jul 7, 2023
@mrharpo mrharpo temporarily deployed to Codecov July 7, 2023 15:41 — with GitHub Actions Inactive
@mrharpo mrharpo temporarily deployed to Codecov July 7, 2023 15:41 — with GitHub Actions Inactive
@mrharpo mrharpo temporarily deployed to Codecov July 7, 2023 15:43 — with GitHub Actions Inactive
@mrharpo mrharpo temporarily deployed to Codecov July 7, 2023 15:43 — with GitHub Actions Inactive
@mrharpo mrharpo temporarily deployed to Codecov July 7, 2023 16:14 — with GitHub Actions Inactive
@mrharpo mrharpo temporarily deployed to Codecov July 7, 2023 16:14 — with GitHub Actions Inactive
@mrharpo mrharpo marked this pull request as ready for review July 7, 2023 16:17
@mrharpo mrharpo temporarily deployed to Codecov July 7, 2023 17:21 — with GitHub Actions Inactive
@mrharpo mrharpo temporarily deployed to Codecov July 7, 2023 17:21 — with GitHub Actions Inactive
@mrharpo mrharpo temporarily deployed to Codecov July 7, 2023 17:36 — with GitHub Actions Inactive
@mrharpo mrharpo temporarily deployed to Codecov July 7, 2023 17:36 — with GitHub Actions Inactive
@mrharpo mrharpo temporarily deployed to Codecov July 7, 2023 21:21 — with GitHub Actions Inactive
@mrharpo mrharpo temporarily deployed to Codecov July 7, 2023 21:21 — with GitHub Actions Inactive
Copy link
Contributor

@afred afred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@afred afred merged commit b176bac into main Jul 10, 2023
9 checks passed
@afred afred deleted the docs branch July 10, 2023 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation 📜 Improvements or additions to documentation enhancement ➕ New feature or request
Projects
No open projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants