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

Release 1.7.12 #429

Merged
merged 62 commits into from
Jul 20, 2023
Merged

Release 1.7.12 #429

merged 62 commits into from
Jul 20, 2023

Conversation

vildead
Copy link
Member

@vildead vildead commented Jul 20, 2023

Tested on DAISY stable. Migration went successfully without errors.

Fancien and others added 30 commits January 19, 2023 15:57
…t-access

Changing behavior for editing accesses
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>
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
…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>
nirmeen and others added 16 commits May 15, 2023 13:01
…on exposures_list in dataset and project, while other entities retain 'is_publishes' field with getter and setter methods.
…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
change label to published instead of avavailable
@sonatype-lift
Copy link

sonatype-lift bot commented Jul 20, 2023

Sonatype Lift is retiring

Sonatype 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.
We are extremely grateful and thank you for your support over the years.

📖 Read about the impacts and timeline

@@ -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'
Copy link

Choose a reason for hiding this comment

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

8% of developers fix this issue

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'),
Copy link

Choose a reason for hiding this comment

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

6% of developers fix this issue

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
Copy link

Choose a reason for hiding this comment

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

9% of developers fix this issue

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', )

Copy link

Choose a reason for hiding this comment

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

12% of developers fix this issue

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
Copy link

Choose a reason for hiding this comment

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

9% of developers fix this issue

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!')
Copy link

Choose a reason for hiding this comment

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

31% of developers fix this issue

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)
Copy link

Choose a reason for hiding this comment

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

8% of developers fix this issue

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
Copy link

Choose a reason for hiding this comment

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

8% of developers fix this issue

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
Copy link

Choose a reason for hiding this comment

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

9% of developers fix this issue

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)]
Copy link

Choose a reason for hiding this comment

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

8% of developers fix this issue

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.

@vildead vildead merged commit b75bcc2 into master Jul 20, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants