Giter Site home page Giter Site logo

Comments (17)

fey avatar fey commented on August 13, 2024

@TarakanovAndrey можете скрин показать? ИЗ текущего описания непонятно в чем проблема.
Если вы форкнули проект и в нем ведете работу, то почему бы ее не учитывать? 🤔

from hexlet-friends.

TarakanovAndrey avatar TarakanovAndrey commented on August 13, 2024

Screenshot from 2023-11-03 10-10-23

from hexlet-friends.

TarakanovAndrey avatar TarakanovAndrey commented on August 13, 2024

@TarakanovAndrey можете скрин показать? ИЗ текущего описания непонятно в чем проблема. Если вы форкнули проект и в нем ведете работу, то почему бы ее не учитывать? 🤔

Вот так это выглядит сейчас. Я сначала подумал, что баг. Потом выяснил, что все это форкнутые репы. Но возникает некотрое замешательство, когда видиш такой список. Может стоит рассмотреть каким-либо образом маркировать форкнутые репы?

from hexlet-friends.

fey avatar fey commented on August 13, 2024

давайте выводить фулл нейм + лейбл форка. фулл нейм это username/repo-name.

from hexlet-friends.

RubanovDmitriy avatar RubanovDmitriy commented on August 13, 2024

Чтобы протетстить, надо выполнить fetchdata локально для форкнутого репозитория.
Пытаясь выполнить make sync RubanovDmitriy/hexlet-friends я получаю ошибку - Forbidden for url: https://api.github.com/users/Hexlet из чего вопрос, нужно этого юзера в collaborators добавить?

image

И по самой задаче, "выводить фулл нейм + лейбл форка" т.е. на моём привере, то ожидаемое поведение должно быть: RubanovDmitriy/hexlet-friends/Python ?
Python я взял из модели Label. Если нет, то прошу уточнить что такое "лейбл форка"

from hexlet-friends.

fey avatar fey commented on August 13, 2024

RubanovDmitriy/hexlet-friends/Python

Точнее будет RubanovDmitriy/hexlet-friends + бейдж (Fork) aka label
Вот как в доке бутстрапа:
https://getbootstrap.com/docs/5.0/components/badge/

from hexlet-friends.

fey avatar fey commented on August 13, 2024

Пытаясь выполнить make sync RubanovDmitriy/hexlet-friends я получаю ошибку - Forbidden for url: https://api.github.com/users/Hexlet из чего вопрос, нужно этого юзера в collaborators добавить?

Насчет этого не понял. По идее нам же не нужно юзеров добавлять в коллабораторы. Может у вас что-то не то с токеном?

from hexlet-friends.

RubanovDmitriy avatar RubanovDmitriy commented on August 13, 2024

Пытаясь выполнить make sync RubanovDmitriy/hexlet-friends я получаю ошибку - Forbidden for url: https://api.github.com/users/Hexlet из чего вопрос, нужно этого юзера в collaborators добавить?

Насчет этого не понял. По идее нам же не нужно юзеров добавлять в коллабораторы. Может у вас что-то не то с токеном?

Затупил, надо было 'make sync ARGS="--repo RubanovDmitriy/hexlet-friends"' выполнять

from hexlet-friends.

RubanovDmitriy avatar RubanovDmitriy commented on August 13, 2024
image Такой формат подойдёт?

from hexlet-friends.

fey avatar fey commented on August 13, 2024

Да, отлично.

from hexlet-friends.

RubanovDmitriy avatar RubanovDmitriy commented on August 13, 2024
  • PR #367
  • Render https://dr-hexlet-friends-issue-360.onrender.com/repositories/
    В template добавлена проверка, если Repository.organization.name != 'Hexlet', то считаем репозиторий форкнутым. И на фронте показываем его full_name и бейдж Fork
    issue думаю можно на меня заасайнить

from hexlet-friends.

RubanovDmitriy avatar RubanovDmitriy commented on August 13, 2024

Переделал с fork, он для этого нужна миграция. Сделал default=False надо будет на проде тогда для всех репозиториев свежие данные подтянуть, чтобы актуально обновилось.
Другого способа пока не вижу.

from hexlet-friends.

fey avatar fey commented on August 13, 2024

image
актуально

from hexlet-friends.

IlyaBag avatar IlyaBag commented on August 13, 2024

Возьму в работу

from hexlet-friends.

fey avatar fey commented on August 13, 2024

Пожалуйста, осмотрите, как щас работает, на свежем репозитории. У нас есть проблема с актуализацией данных, возможно нужно написать скрипт, который проходится по текущим данным и обновляет их.

from hexlet-friends.

IlyaBag avatar IlyaBag commented on August 13, 2024

А что с PR, предложенным выше? Мне стоит как-то ориентироваться на него? Сейчас в проекте, как я понял, всё ещё нет никакого разделения репозиториев на оригинал и форк.

from hexlet-friends.

fey avatar fey commented on August 13, 2024

По идее я могу выгрузку в csv сделать, для анализа текущих данных в БД. У нас не работает толком загрузка свежих данных/синхронизация данных, поэтому возможно те репозитории, что есть - не отображаются как форки.
Можно например такой вариант - берем список популярных реп (типа тот же hexlet-friends и для всех реп кроме Хекслетовского проставляем нужный флаг (если он появился в бд). Флажок можно будет через миграцию проставить

from hexlet-friends.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.