-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trial mode added for Qiskit Functions (#1571)
* modified the model to support the new field * created trial and fixed retrieving a function * move the provider to the serializer * remove unneeded change * updated test to check the environment variable * added allow_null in the serializer * change env_var name
- Loading branch information
Showing
14 changed files
with
156 additions
and
102 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
gateway/api/migrations/0033_job_trial_program_trial_instances_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,33 @@ | ||
# Generated by Django 4.2.16 on 2025-01-17 15:59 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("auth", "0012_alter_user_first_name_max_length"), | ||
("api", "0032_computeresource_gpu_job_gpu"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="job", | ||
name="trial", | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AddField( | ||
model_name="program", | ||
name="trial_instances", | ||
field=models.ManyToManyField( | ||
blank=True, related_name="program_trial_instances", to="auth.group" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="program", | ||
name="instances", | ||
field=models.ManyToManyField( | ||
blank=True, related_name="program_instances", to="auth.group" | ||
), | ||
), | ||
] |
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
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.