-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3064 embed extend ceramiccache model to include scorer id for stamps (#…
…769) * feat[api]: (WIP) adding fields to track source of stamps in CeramicCache model * feat[api]: (WIP) adding related DB migration * feat: adding tests for storing the stamps & score when using the embed api * feat: (API) test setting the proper stamp creator and scorer id on the ceramic_cache API * fix: tests related to changes in ceramic cache models * feat: rename new attribute in CeramicCache, fixing failing tests * fix: delete migrations before rebase * fix: recreate migration after rebase * fix: import order in bulk_POST.py lambda * fix: remove print statements --------- Co-authored-by: Gerald Iakobinyi-Pich <[email protected]>
- Loading branch information
Showing
22 changed files
with
926 additions
and
412 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
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 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 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
35 changes: 35 additions & 0 deletions
35
api/ceramic_cache/migrations/0031_ceramiccache_source_app_and_more.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,35 @@ | ||
# Generated by Django 4.2.6 on 2025-01-14 16:16 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("ceramic_cache", "0030_alter_ceramiccache_created_at_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="ceramiccache", | ||
name="source_app", | ||
field=models.IntegerField( | ||
blank=True, | ||
choices=[(1, "Passport"), (2, "Embed")], | ||
db_index=True, | ||
help_text="Which entity created the stamp. At the moment there are 2 options: the 'Passport App' and 'Embed Widget'", | ||
null=True, | ||
verbose_name="Creating Enity", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="ceramiccache", | ||
name="source_scorer_id", | ||
field=models.BigIntegerField( | ||
blank=True, | ||
db_index=True, | ||
help_text="This is field is only used to indicate for analytic purposes which scorer was targeted \n when claiming the users credential (when used from embed, it will indicate what scorer id was set in \n the embed component)", | ||
null=True, | ||
verbose_name="Scorer ID", | ||
), | ||
), | ||
] |
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 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
Oops, something went wrong.