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

GITC-657 Update l2 text for multi-sig wallets #9849

Merged
merged 5 commits into from
Dec 15, 2021

Conversation

ksolo
Copy link
Contributor

@ksolo ksolo commented Dec 7, 2021

Description

Update warnings for L2 based contributions

Refers/Fixes

GITC-657

@thelostone-mc
Copy link
Member

Is this ready for review @ksolo ?

@ksolo
Copy link
Contributor Author

ksolo commented Dec 14, 2021

@thelostone-mc It's not I had some questions about requirements and paused this while I jumped on the Cypress PR. The questions have been answered now and I can jump back to this.

@ksolo ksolo force-pushed the gitc-657/l2-grant-contract-wallets-messaging branch from 43fc65a to 5d55afc Compare December 14, 2021 19:43
@ksolo ksolo marked this pull request as ready for review December 14, 2021 19:44
Comment on lines +117 to +119
max_length_offset = abs(
((request.user.profile.created_on if user_is_authenticated_and_valid else timezone.now()) - timezone.now()).days
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

result of make fix

return Activity.objects.exclude(
activities_index__key__isnull=True
).order_by('-pk').cache()
return Activity.objects.exclude(activities_index__key__isnull=True).order_by('-pk').cache()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

result of make fix

@@ -25,7 +25,6 @@ class Command(BaseCommand):

help = 'fixes avatars whose pngs have failed'


Copy link
Contributor Author

Choose a reason for hiding this comment

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

result of make fix

Comment on lines +774 to +779
new_avatars = [
'SSShiine', 'avrilapril', 'eknobl', 'lkh', 'nanshulot', 'wahyu243', 'zak102', 'artipedia', 'azizyano',
'hasssan04', 'maystro4', 'riyasoganii', 'writeprovidence', 'petushka1', 'merit-tech', 'hamzaghz',
'bruno-tandon', 'KayZou', 'the-hack-god', 'old-monger', 'virtual-face', 'art-maniac', 'vinhbhn', 'masket-bask',
'panigale120'
]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

make fix

for _key in new_avatars:
avatar_attrs[_key] = {
'preview_viewbox': {
},
'preview_viewbox': {},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

make fix

@@ -111,6 +111,7 @@ def data_viz_helper_get_data_responses(request, visual_type):

return data_dict


Copy link
Contributor Author

Choose a reason for hiding this comment

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

make fix

@@ -18,8 +18,10 @@

"""
from django.contrib import admin

Copy link
Contributor Author

Choose a reason for hiding this comment

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

make fix

from git.models import GitCache


Copy link
Contributor Author

Choose a reason for hiding this comment

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

make fix

@@ -16,4 +16,3 @@ class Meta:

# Generate binary data depending on n
data = factory.Sequence(lambda n: ("{n}" * 100).encode("utf-8"))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

make fix

@@ -1,6 +1,6 @@
from git.tests.factories.git_cache_factory import GitCacheFactory
Copy link
Contributor Author

Choose a reason for hiding this comment

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

make fix

import pytest
from git.models import GitCache
from git.tests.factories.git_cache_factory import GitCacheFactory
Copy link
Contributor Author

Choose a reason for hiding this comment

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

make fix

Comment on lines +29 to +37
from faker import Faker
from git.models import GitCache
from git.tests.factories.git_cache_factory import GitCacheFactory
from git.utils import (
HEADERS, TOKEN_URL, build_auth_dict, delete_issue_comment, get_github_emails, get_github_primary_email,
HEADERS, TOKEN_URL, _get_user, build_auth_dict, delete_issue_comment, get_github_emails, get_github_primary_email,
get_issue_comments, get_issue_timeline_events, github_connect, is_github_token_valid, org_name, patch_issue_comment,
post_issue_comment, post_issue_comment_reaction, repo_url, reset_token, revoke_token, _get_user
post_issue_comment, post_issue_comment_reaction, repo_url, reset_token, revoke_token,
)
from github import NamedUser
Copy link
Contributor Author

Choose a reason for hiding this comment

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

make fix

Comment on lines -21 to -30
from urllib.parse import quote_plus, urlencode
from unittest.mock import MagicMock, patch
from github import NamedUser
from urllib.parse import quote_plus, urlencode

from django.conf import settings
from django.test.utils import override_settings
from django.utils import timezone
from git.models import GitCache
from git.tests.factories.git_cache_factory import GitCacheFactory
from faker import Faker
Copy link
Contributor Author

Choose a reason for hiding this comment

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

make fix

assert loaded_user == gh_user
Copy link
Contributor Author

Choose a reason for hiding this comment

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

make fix

Comment on lines +23 to +37
from io import BytesIO
from urllib.parse import quote_plus, urlencode

from django.conf import settings
from io import BytesIO
from django.utils import timezone

import dateutil.parser
import requests
from .models import GitCache
from github import Github
from github.GithubException import BadCredentialsException, GithubException, UnknownObjectException
from requests.exceptions import ConnectionError
from rest_framework.reverse import reverse

from .models import GitCache

Copy link
Contributor Author

Choose a reason for hiding this comment

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

make fix

@@ -649,7 +655,7 @@ <h5 class="font-weight-bold mb-3">Verify Grant Ownership with Twitter</h5>
<label class="font-subheader letter-spacing text-grey-500 mb-0 mr-3" for="title">Logo background color</label>
<input type="color" v-model="logoBackground" @input="changeColor">
</div>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

make fix

@@ -28,7 +28,7 @@
from django.utils.translation import gettext_lazy as _

from mailchimp3 import MailChimp
from marketing.models import AccountDeletionRequest, EmailSupressionList, LeaderboardRank, EmailSubscriber
from marketing.models import AccountDeletionRequest, EmailSubscriber, EmailSupressionList, LeaderboardRank
Copy link
Contributor Author

Choose a reason for hiding this comment

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

make fix

@@ -48,7 +48,7 @@
from marketing.country_codes import COUNTRY_CODES, COUNTRY_NAMES, FLAG_API_LINK, FLAG_ERR_MSG, FLAG_SIZE, FLAG_STYLE
from marketing.mails import new_feedback
from marketing.models import AccountDeletionRequest, EmailSubscriber, Keyword, LeaderboardRank, UpcomingDate
from marketing.utils import get_or_save_email_subscriber, validate_slack_integration, delete_email_subscription
from marketing.utils import delete_email_subscription, get_or_save_email_subscriber, validate_slack_integration
Copy link
Contributor Author

Choose a reason for hiding this comment

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

make fix

@ksolo
Copy link
Contributor Author

ksolo commented Dec 14, 2021

I labeled the files that were updated from the make fix command so that reviewers can safely ignore them.

@nutrina
Copy link
Contributor

nutrina commented Dec 15, 2021

There are quite a number of changes introduced by make fix.
@ksolo @thelostone-mc @gdixon do you think it would make sense to use something like pre-commit: https://pre-commit.com

This would run a validation script on the changed files before every commit, and would ensure a common styling.
I must however admit, it can be annoying sometimes.

Copy link
Contributor

@nutrina nutrina left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@thelostone-mc thelostone-mc merged commit aee06a6 into master Dec 15, 2021
@frankchen07
Copy link
Contributor

LGTM

Copy link

@Apdlrcjafg19 Apdlrcjafg19 left a comment

Choose a reason for hiding this comment

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

Avance

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.

6 participants