• S sverchok
  • Информация о проекте
    • Информация о проекте
    • Активность
    • Метки
    • Участники
  • Репозиторий
    • Репозиторий
    • Файлы
    • Коммиты
    • Ветки
    • Теги
    • Участники
    • Диаграмма
    • Сравнение
  • Задачи 148
    • Задачи 148
    • Список
    • Доски
    • Спринты
  • Запросы на слияние 21
    • Запросы на слияние 21
  • CI/CD
    • CI/CD
    • Конвейеры
    • Задания
    • Расписания
  • Развертывания
    • Развертывания
    • Окружения
    • Релизы
  • Пакеты и реестры
    • Пакеты и реестры
    • Реестр пакетов
    • Реестр контейнеров
  • Мониторинг
    • Мониторинг
    • Инциденты
  • Аналитика
    • Аналитика
    • Поток ценности
    • CI/CD
    • Репозиторий
  • Wiki
    • Wiki
  • Сниппеты
    • Сниппеты
  • Активность
  • Диаграмма
  • Создать новую задачу
  • Задания
  • Коммиты
  • Доски с задачами
Свернуть панель
  • nikitronn
  • sverchok
  • Запросы на слияние
  • !2619

UI for GitHub gist creation API token.

  • Ревью изменений

  • Скачать
  • Почтовые патчи
  • Простое отличие
Слиты nikitronn запросил слияние gist_token_ui в b28_prelease_master Окт 14, 2019
  • Обзор 5
  • Коммиты 1
  • Конвейеры 0
  • Изменения 7

Created by: portnov

Addressed problem description

This addresses a long-standing issue of Sverchok not being able to export node trees to gist.github.com without manual and tricky creation of some file, which contained your unprotected github password. The issue was also discussed in #2197.

Solution description

  • Add an instruction for users at https://github.com/nortikin/sverchok/wiki/Set-up-GitHub-account-for-exporting-node-trees-from-Sverchok about how to create a "github access token"
  • Add a setting into preferences to store that access token
  • Use that token for authentication when creating gists
  • Remove old "wad" file support - b28 branch is a point to drop this kind of compatibility
  • Show "export to gist" button always; but if user has no github access token configured, display a message and open documentation page in the browser.

Known issue: when trying to open documentation page, a python error may appear. This bug is fixed in Python 3.7.1. https://bugs.python.org/issue31014 On my system, the error appears when I press the button first time; but if I press it second time, there is no error.

This PR also takes care of "CERTIFICATE_VERIFY_FAILED" error, which may appear in some blender builds when trying to access HTTPS URL. As far as I understand, the problem is that on some platforms Blender's built-in python does not use system's trusted certificates storage, so we have to use python's own storage, which is accessible via certifi package.

Preflight checklist

Put an x letter in each brackets when you're done this item:

  • Code changes complete.
  • Code documentation complete.
  • Documentation for users complete (or not required, if user never sees these changes).
  • Manual testing done.
  • Unit-tests implemented.
  • Ready for merge.
Ответственный
Назначить
Проверяющие
Запросить ревью
Оценка трудозатрат
Исходная ветка: gist_token_ui