From 082580e6b50afab66143413aa16ce8357ba16186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 10 Feb 2021 04:09:19 +0100 Subject: [PATCH 01/10] Fix #3528 Make the progress bar not overlap the textarea. While at it, also remove useless `content: ""` rules which do nothing, and an useless `width` declaration which also does nothing because it's the same width as the block would have minus margins. --- webcompat/static/css/src/issue-wizard-textarea.css | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/webcompat/static/css/src/issue-wizard-textarea.css b/webcompat/static/css/src/issue-wizard-textarea.css index 5bc10de20..28c809291 100644 --- a/webcompat/static/css/src/issue-wizard-textarea.css +++ b/webcompat/static/css/src/issue-wizard-textarea.css @@ -22,21 +22,16 @@ .progress-textarea .progress { background: #b3f4d7; border-radius: 2px; - bottom: 0; - content: ""; height: 20px; - left: 0; margin: 4px; overflow: hidden; - position: absolute; - width: calc(100% - 8px); + position: relative; z-index: 2; } .progress-textarea .progress .bar { background: #22b573; bottom: 0; - content: ""; height: 20px; left: 0; min-width: 1%; From 44b4d4f4785736b4e2d101a248879d79ffaf21fb Mon Sep 17 00:00:00 2001 From: Karl Dubost Date: Wed, 10 Feb 2021 12:49:24 +0900 Subject: [PATCH 02/10] v40.0.0 changelog update --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d3df27e54..544554e6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ 2. New features: affect minor number 3. API endpoint changes or (major) dependency version updates: affect major number +## 40.0.0 - 2021-02-10 + +* Fixes #3528 - Fix CSS for description textarea [Pull #3535](https://github.com/webcompat/webcompat.com/pull/3535) +* Fixes #3532 - Move to python 3.9.1 [Pull #3533](https://github.com/webcompat/webcompat.com/pull/3533) +* Fixes #3526 - Make get_description regex less greedy [Pull #3527](https://github.com/webcompat/webcompat.com/pull/3527) + ## 39.0.1 - 2021-01-27 * Fixes #3522 - Fix outreach comment for auth reports [Pull #3525](https://github.com/webcompat/webcompat.com/pull/3525) From 0923047d3736ace5ed4b5d61b4b381eb86780c72 Mon Sep 17 00:00:00 2001 From: Karl Dubost Date: Tue, 2 Mar 2021 16:37:48 +0900 Subject: [PATCH 03/10] Issue #3540. Change the list name for browsers --- webcompat/webhooks/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webcompat/webhooks/helpers.py b/webcompat/webhooks/helpers.py index be5ffc22e..ffe61d7eb 100644 --- a/webcompat/webhooks/helpers.py +++ b/webcompat/webhooks/helpers.py @@ -23,7 +23,7 @@ from webcompat.issues import moderation_template BROWSERS = ['blackberry', 'brave', 'chrome', 'edge', 'firefox', 'iceweasel', 'ie', 'lynx', 'myie', 'opera', 'puffin', 'qq', 'safari', 'samsung', 'seamonkey', 'uc', 'vivaldi'] # noqa -MOZILLA_BROWSERS = ['browser-android-components', +GECKO_BROWSERS = ['browser-android-components', 'browser-fenix', 'browser-firefox', 'browser-firefox-mobile', @@ -157,7 +157,7 @@ def get_issue_labels(issue_body): labelslist.extend(extra_labels) priority_label = extract_priority_label(issue_body) labelslist.extend([browser_label, priority_label]) - if any(label for label in labelslist if label in MOZILLA_BROWSERS): + if any(label for label in labelslist if label in GECKO_BROWSERS): labelslist.append('engine-gecko') labelslist = [label for label in labelslist if label is not None] return labelslist From 90b00f0833101fe8199a9e1739973e3ff859a0cc Mon Sep 17 00:00:00 2001 From: Karl Dubost Date: Tue, 2 Mar 2021 16:38:16 +0900 Subject: [PATCH 04/10] Issue #3541. Adds an ios list of browsers --- webcompat/webhooks/helpers.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/webcompat/webhooks/helpers.py b/webcompat/webhooks/helpers.py index ffe61d7eb..132278260 100644 --- a/webcompat/webhooks/helpers.py +++ b/webcompat/webhooks/helpers.py @@ -24,14 +24,14 @@ BROWSERS = ['blackberry', 'brave', 'chrome', 'edge', 'firefox', 'iceweasel', 'ie', 'lynx', 'myie', 'opera', 'puffin', 'qq', 'safari', 'samsung', 'seamonkey', 'uc', 'vivaldi'] # noqa GECKO_BROWSERS = ['browser-android-components', - 'browser-fenix', - 'browser-firefox', - 'browser-firefox-mobile', - 'browser-firefox-reality', - 'browser-firefox-tablet', - 'browser-focus-geckoview', - 'browser-geckoview', - ] + 'browser-fenix', + 'browser-firefox', + 'browser-firefox-mobile', + 'browser-firefox-reality', + 'browser-firefox-tablet', + 'browser-focus-geckoview', + 'browser-geckoview', ] +IOS_BROWSERS = ['browser-firefox-ios', ] PUBLIC_REPO = app.config['ISSUES_REPO_URI'] PRIVATE_REPO = app.config['PRIVATE_REPO_URI'] @@ -159,6 +159,8 @@ def get_issue_labels(issue_body): labelslist.extend([browser_label, priority_label]) if any(label for label in labelslist if label in GECKO_BROWSERS): labelslist.append('engine-gecko') + if any(label for label in labelslist if label in IOS_BROWSERS): + labelslist.append('os-ios') labelslist = [label for label in labelslist if label is not None] return labelslist From 995c790bd32386c60ca49c8d27805442a88fcc33 Mon Sep 17 00:00:00 2001 From: Karl Dubost Date: Tue, 2 Mar 2021 16:50:09 +0900 Subject: [PATCH 05/10] issue #3541. Adds test for firefox ios --- tests/unit/test_webhook.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/unit/test_webhook.py b/tests/unit/test_webhook.py index b18afc906..50439525b 100644 --- a/tests/unit/test_webhook.py +++ b/tests/unit/test_webhook.py @@ -101,6 +101,21 @@ def setUp(self): """ + self.issue_body8 = """ + + + + + + + + **URL**: https://example.com/ + + **Browser / Version**: Firefox iOS 31.0 + **Operating System**: iOS 14.4 + **Tested Another Browser**: Yes Safari + """ # noqa + self.issue_info1 = { 'action': 'foobar', 'state': 'open', @@ -317,6 +332,7 @@ def test_get_issue_labels(self): (self.issue_body5, ['browser-firefox-reality', 'engine-gecko', 'type-media']), (self.issue_body6, ['browser-safari']), + (self.issue_body8, ['browser-firefox-ios', 'os-ios']), ] for issue_body, expected in labels_tests: actual = helpers.get_issue_labels(issue_body) From 617cebd8d1776a2b1ab11862c49949a676b37e95 Mon Sep 17 00:00:00 2001 From: Karl Dubost Date: Tue, 2 Mar 2021 16:50:44 +0900 Subject: [PATCH 06/10] issue #3541. Adds firefox-ios to extra labels --- config/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/config/__init__.py b/config/__init__.py index 70660af2f..a763b2e46 100644 --- a/config/__init__.py +++ b/config/__init__.py @@ -212,6 +212,7 @@ def get_variation(variation_key, variations_dict, defaults_dict): 'browser-android-components', 'browser-fenix', 'browser-focus-geckoview', + 'browser-firefox-ios', 'browser-firefox-reality', 'type-fastclick', 'type-google', From d48c7bd463237f6ba27786002c3a938bf79967ab Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 1 Mar 2021 16:57:14 +0000 Subject: [PATCH 07/10] Bump svgo from 1.3.2 to 2.1.0 Bumps [svgo](https://github.com/svg/svgo) from 1.3.2 to 2.1.0. - [Release notes](https://github.com/svg/svgo/releases) - [Changelog](https://github.com/svg/svgo/blob/master/CHANGELOG-old.md) - [Commits](https://github.com/svg/svgo/compare/v1.3.2...v2.1.0) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2158f232e..666b5c583 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "stylelint-config-standard": "^20.0.0", "stylelint-order": "^4.0.0", "svg-sprite-generator": "0.0.7", - "svgo": "^1.1.1", + "svgo": "^2.1.0", "terser-webpack-plugin": "^4.1.0", "webpack": "^4.43.0", "webpack-cli": "^4.1.0", From 58d01b23ca213f48f9a7fb392c837796c36082a3 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 1 Mar 2021 17:10:41 +0000 Subject: [PATCH 08/10] Bump husky from 4.3.8 to 5.1.2 Bumps [husky](https://github.com/typicode/husky) from 4.3.8 to 5.1.2. - [Release notes](https://github.com/typicode/husky/releases) - [Commits](https://github.com/typicode/husky/compare/v4.3.8...v5.1.2) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 666b5c583..104344a7d 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "eslint-config-prettier": "^7.1.0", "eslint-plugin-prettier": "^3.0.0", "file-loader": "^6.0.0", - "husky": "^4.0.2", + "husky": "^5.1.2", "imagemin-webpack-plugin": "^2.4.2", "intern": "^4.8.4", "leadfoot": "1.7.6", From d15046ad1ab85bec9d28f41a10ac0095497d167d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 18 Mar 2021 20:27:59 +0000 Subject: [PATCH 09/10] Bump pillow from 8.1.0 to 8.1.1 in /config Bumps [pillow](https://github.com/python-pillow/Pillow) from 8.1.0 to 8.1.1. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst) - [Commits](https://github.com/python-pillow/Pillow/compare/8.1.0...8.1.1) Signed-off-by: dependabot[bot] --- config/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/requirements.txt b/config/requirements.txt index 897d19577..d191c0dde 100644 --- a/config/requirements.txt +++ b/config/requirements.txt @@ -5,7 +5,7 @@ Flask-Limiter==1.4 Flask-SQLAlchemy==2.4.4 Flask-WTF==0.14.3 GitHub-Flask==3.2.0 -Pillow==8.1.0 +Pillow==8.1.1 python-dotenv==0.15.0 requests==2.25.1 ua-parser==0.10.0 From 493ed7b40dfa16af305b1323411da0cafe17ebca Mon Sep 17 00:00:00 2001 From: Akash Negi <55234838+NegiAkash890@users.noreply.github.com> Date: Thu, 4 Mar 2021 23:07:56 +0530 Subject: [PATCH 10/10] issue #3547 - Removes unused Requests library import --- webcompat/webhooks/helpers.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/webcompat/webhooks/helpers.py b/webcompat/webhooks/helpers.py index 132278260..70dee3e23 100644 --- a/webcompat/webhooks/helpers.py +++ b/webcompat/webhooks/helpers.py @@ -11,8 +11,6 @@ import logging import re -from requests.exceptions import HTTPError - from webcompat import app from webcompat.db import Site from webcompat.db import site_db