-
Notifications
You must be signed in to change notification settings - Fork 10
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
Release 1.7.12 #429
Release 1.7.12 #429
Conversation
…t-access Changing behavior for editing accesses
bumb version to 1.7.11
Create docker-image.yml to automate building and publishing the docker image
Bumps [django](https://github.com/django/django) from 3.2 to 3.2.18. - [Release notes](https://github.com/django/django/releases) - [Commits](django/django@3.2...3.2.18) --- updated-dependencies: - dependency-name: django dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
…3.2.18 Bump django from 3.2 to 3.2.18
Bumps [django-debug-toolbar](https://github.com/jazzband/django-debug-toolbar) from 3.2.0 to 3.2.1. - [Release notes](https://github.com/jazzband/django-debug-toolbar/releases) - [Changelog](https://github.com/jazzband/django-debug-toolbar/blob/main/docs/changes.rst) - [Commits](jazzband/django-debug-toolbar@3.2...3.2.1) --- updated-dependencies: - dependency-name: django-debug-toolbar dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
…debug-toolbar-3.2.1 Bump django-debug-toolbar from 3.2.0 to 3.2.1
…point publishing
…mplate.py accordingly
…ded dataset form_id to dataset metadata
…le list and removed already exposed endpoints from new exposure endpoint dropdown
Bumps [django](https://github.com/django/django) from 3.2.18 to 3.2.19. - [Commits](django/django@3.2.18...3.2.19) --- updated-dependencies: - dependency-name: django dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
…on exposures_list in dataset and project, while other entities retain 'is_publishes' field with getter and setter methods.
… and take the project ribbon off
…nd used it in dataset view
…s-list #420-added form_name to exposures_list in dataset view and admin view
…blished migration and linked it to last migration on develop
#422-is-published-property
change label to published instead of avavailable
Sonatype Lift is retiringSonatype Lift will be retiring on Sep 12, 2023, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console. |
@@ -31,7 +31,7 @@ | |||
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/ | |||
|
|||
# SECURITY WARNING: keep the secret key used in production secret! | |||
SECRET_KEY = 'qe1lmt43v1n%66vibs0&0s9qw7i!xjs^!i#f#$t_7-r8n&=+sp' | |||
SECRET_KEY = 'qe1lmt43v1n%66vibs0&0s9qw7i!xjs^!i#f#&t_7-r8n&=+sp' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
B105: Possible hardcoded password: 'qe1lmt43v1n%66vibs0&0s9qw7i!xjs^!i#f#&t_7-r8n&=+sp'
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
migrations.AlterField( | ||
model_name='endpoint', | ||
name='api_key', | ||
field=core.models.utils.HashedField(help_text="\n * Please specify the API key to the endpoint, \n head <a href='https://generate-random.org/api-key-generator?count=1&length=64&type=mixed-numbers&prefix=' target='_blank'> here </a>\n to generate a random key and keep it somewhere, we only store a hash.\n ", max_length=128, unique=True, verbose_name='API Key'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E501: line too long (402 > 160 characters)
❗❗ 2 similar findings have been found in this PR
🔎 Expand here to view all instances of this finding
File Path | Line Number |
---|---|
core/migrations/0032_auto_20230508_1200.py | 22 |
core/migrations/0033_auto_20230515_1147.py | 22 |
Visit the Lift Web Console to find more details in your report.
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
@@ -0,0 +1,32 @@ | |||
# Generated by Django 3.2.19 on 2023-05-15 11:53 | |||
|
|||
import core.models.utils |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
F401: 'core.models.utils' imported but unused
❗❗ 4 similar findings have been found in this PR
🔎 Expand here to view all instances of this finding
File Path | Line Number |
---|---|
web/views/api.py | 23 |
web/views/api.py | 23 |
web/views/api.py | 23 |
web/views/projects.py | 3 |
Visit the Lift Web Console to find more details in your report.
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
on_delete=models.SET_NULL, | ||
null=True, | ||
help_text='Which User added this entry to DAISY', ) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W293: blank line contains whitespace
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
@@ -151,7 +151,9 @@ def __str__(self): | |||
return self.acronym or self.title or "undefined" | |||
|
|||
|
|||
|
|||
@property |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E303: too many blank lines (2)
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
def validate_json(value): | ||
if len(value) == 0: | ||
return value | ||
|
||
try: | ||
loads(value) | ||
if '{' not in value: # Very inaccurate, but should do the trick when the user tries to save e.g. '123' | ||
raise ValidationError(f'`scientific_metadata` field must be a valid JSON containing a dictionary!') | ||
raise ValidationError(f'`scientific_metadata` field must be a valid JSON containing a dictionary!') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
F541: f-string is missing placeholders
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
return False | ||
|
||
@admin.register(Exposure) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E302: expected 2 blank lines, found 1
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
@@ -0,0 +1,12 @@ | |||
from django import forms |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E0401: Unable to import 'django'
❗❗ 28 similar findings have been found in this PR
🔎 Expand here to view all instances of this finding
File Path | Line Number |
---|---|
core/forms/exposure.py | 1 |
core/migrations/0031_endpoint_exposure.py | 4 |
core/migrations/0031_endpoint_exposure.py | 5 |
core/migrations/0031_endpoint_exposure.py | 6 |
core/migrations/0032_auto_20230508_1200.py | 4 |
core/migrations/0033_auto_20230515_1147.py | 4 |
core/migrations/0034_auto_20230515_1353.py | 4 |
core/models/access.py | 6 |
core/models/dataset.py | 6 |
core/models/endpoint.py | 3 |
Showing 10 of 28 findings. Visit the Lift Web Console to see all.
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
@@ -0,0 +1,12 @@ | |||
from django import forms |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reportMissingImports: Import "django" could not be resolved
❗❗ 28 similar findings have been found in this PR
🔎 Expand here to view all instances of this finding
File Path | Line Number |
---|---|
core/forms/exposure.py | 1 |
core/migrations/0031_endpoint_exposure.py | 4 |
core/migrations/0031_endpoint_exposure.py | 5 |
core/migrations/0031_endpoint_exposure.py | 6 |
core/migrations/0032_auto_20230508_1200.py | 4 |
core/migrations/0033_auto_20230515_1147.py | 4 |
core/migrations/0034_auto_20230515_1353.py | 4 |
core/models/access.py | 6 |
core/models/dataset.py | 6 |
core/models/endpoint.py | 3 |
Showing 10 of 28 findings. Visit the Lift Web Console to see all.
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
exposure_list = Exposure.objects.filter(dataset=dataset) | ||
endpoint_ids = exposure_list.values_list('endpoint', flat=True) | ||
self.fields['endpoint'].choices = [(e.id, e) for e in Endpoint.objects.exclude(id__in=endpoint_ids)] + \ | ||
[(endpoint.id, endpoint)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reportOptionalMemberAccess: "id" is not a known member of "None"
❗❗ 2 similar findings have been found in this PR
🔎 Expand here to view all instances of this finding
File Path | Line Number |
---|---|
web/views/exposure.py | 48 |
web/views/exposure.py | 58 |
Visit the Lift Web Console to find more details in your report.
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
1 7 12 resolve conflict
Tested on DAISY stable. Migration went successfully without errors.