Add Organizations of a user #41

Closed
opened 2025-10-31 17:04:21 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @shreyas1599 on GitHub (Apr 11, 2020).

Currently, the organizations a user belongs to is not displayed. Also, if a repo belongs to an organization instead of an individual as is the case with this repo, the link of the organization won't work.

So we need an organization screen and on the profile page, the list of organizations the user is a part of. Where do you think we could place it? (It'd just be a row(s) of profile pictures)

image

Below the yellow line or above the contributions graph or anywhere else?

Originally created by @shreyas1599 on GitHub (Apr 11, 2020). Currently, the organizations a user belongs to is not displayed. Also, if a repo belongs to an organization instead of an individual as is the case with this repo, the link of the organization won't work. So we need an organization screen and on the profile page, the list of organizations the user is a part of. Where do you think we could place it? (It'd just be a row(s) of profile pictures) ![image](https://user-images.githubusercontent.com/28999492/79053973-fce72c00-7c5e-11ea-829a-9387965ffad6.png) Below the yellow line or above the contributions graph or anywhere else?
GiteaMirror added the enhancement label 2025-10-31 17:04:21 -05:00
Author
Owner

@pd4d10 commented on GitHub (Apr 12, 2020):

I'm not sure. Seems both would be OK?

@pd4d10 commented on GitHub (Apr 12, 2020): I'm not sure. Seems both would be OK?
Author
Owner

@shreyas1599 commented on GitHub (Apr 12, 2020):

@pd4d10 I need some help. I'm trying to add the organization connection in gh_user.graphql. Under repositoryOwner and inside ... on User is where I'm trying to place it. But for some reason it affects the results of ... on Organization in gh_user.dart. Am I doing anything wrong?

@shreyas1599 commented on GitHub (Apr 12, 2020): @pd4d10 I need some help. I'm trying to add the organization connection in `gh_user.graphql`. Under `repositoryOwner` and inside [... on User](https://github.com/git-touch/git-touch/blob/master/lib/graphql/gh_user.graphql#L8) is where I'm trying to place it. But for some reason it affects the results of [... on Organization](https://github.com/git-touch/git-touch/blob/master/lib/graphql/gh_user.graphql#L90) in `gh_user.dart`. Am I doing anything wrong?
Author
Owner

@pd4d10 commented on GitHub (Apr 13, 2020):

It seems an issue of the artemis lib: https://github.com/comigor/artemis/issues/18

I tried to upgrade its version before but got another problem: https://github.com/comigor/artemis/issues/63#issuecomment-590172267

@pd4d10 commented on GitHub (Apr 13, 2020): It seems an issue of the artemis lib: https://github.com/comigor/artemis/issues/18 I tried to upgrade its version before but got another problem: https://github.com/comigor/artemis/issues/63#issuecomment-590172267
Author
Owner

@shreyas1599 commented on GitHub (Apr 13, 2020):

Alright. Also in the org_repo
screen some organizations have to enable permission for us to be able to fetch details. For example, I'm able to view the Google organization but not the git touch organization (it is stuck on loading forever). Do you think if would be good to add a timeout option and tell display a pop-up telling the user about this? But as far as I know you are already displaying an error message if an error occurs. Still no error message pops up. Maybe because we should add a timeout feature?

@shreyas1599 commented on GitHub (Apr 13, 2020): Alright. Also in the `org_repo` screen some organizations have to enable permission for us to be able to fetch details. For example, I'm able to view the Google organization but not the git touch organization (it is stuck on loading forever). Do you think if would be good to add a timeout option and tell display a pop-up telling the user about this? But as far as I know you are already displaying an error message if an error occurs. Still no error message pops up. Maybe because we should add a timeout feature?
Author
Owner

@pd4d10 commented on GitHub (Apr 13, 2020):

I'm not sure if the permission you mentioned is related to this:

805f065def/lib/screens/gh_org_repos.dart (L10-L15)

We have changed it from GraphQL to RESTful API to avoid the access restriction.

@pd4d10 commented on GitHub (Apr 13, 2020): I'm not sure if the permission you mentioned is related to this: https://github.com/git-touch/git-touch/blob/805f065def16e008d65d5fc230eb1a212df93319/lib/screens/gh_org_repos.dart#L10-L15 We have changed it from GraphQL to RESTful API to avoid the access restriction.
Author
Owner

@pd4d10 commented on GitHub (Apr 13, 2020):

. Maybe because we should add a timeout feature?

Agreed. We could have one.

@pd4d10 commented on GitHub (Apr 13, 2020): > . Maybe because we should add a timeout feature? Agreed. We could have one.
Author
Owner

@shreyas1599 commented on GitHub (Apr 13, 2020):

I'm not sure if the permission you mentioned is related to this:

805f065def/lib/screens/gh_org_repos.dart (L10-L15)

We have changed it from GraphQL to RESTful API to avoid the access restriction.

Yeah, I saw this but for some reason it still doesn't load even though the organization is public( I'm talking about git-touch). Timeout sounds like a hacky fix for now. Doesn't point to the underlying problem.

@shreyas1599 commented on GitHub (Apr 13, 2020): > I'm not sure if the permission you mentioned is related to this: > > https://github.com/git-touch/git-touch/blob/805f065def16e008d65d5fc230eb1a212df93319/lib/screens/gh_org_repos.dart#L10-L15 > > We have changed it from GraphQL to RESTful API to avoid the access restriction. Yeah, I saw this but for some reason it still doesn't load even though the organization is public( I'm talking about git-touch). Timeout sounds like a hacky fix for now. Doesn't point to the underlying problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/git-touch#41