Check Issue Subscription and display button based on that #445

Merged
mmarif merged 12 commits from 6543/GitNex:imprufe-issue-subscription-checking into master 2020-05-21 18:58:09 +00:00
Member

as described in #356

close #356

as described in #356 close #356
6543 added this to the 3.0.0 milestone 2020-04-23 22:11:39 +00:00
6543 added the
Improvement
label 2020-04-23 22:11:39 +00:00
Author
Member

PS: It als handle 200 responces from API - witch will be in >= 1.12

PS: It als handle 200 responces from API - witch will be in >= 1.12
6543 added the
LGTM-need
label 2020-04-23 22:12:47 +00:00
Owner

Comment from the issue, #356 (comment)

Comment from the issue, https://gitea.com/gitnex/GitNex/issues/356#issuecomment-112254
Owner

Tested and two things I noticed(one is just visual).

Swap the icons for subscribe/unsubscribe.

Even I am subscribed to an issue, it still shows subscribe. Upon tap to subscribe, it says issue subscribed which I was already subscribed to.

Tested and two things I noticed(one is just visual). Swap the icons for subscribe/unsubscribe. Even I am subscribed to an issue, it still shows subscribe. Upon tap to subscribe, it says issue subscribed which I was already subscribed to.
Owner

Can't attach as attachments are broken, but I guess you get the idea.

Can't attach as attachments are broken, but I guess you get the idea.
Author
Member

IssueDetailActivity.java has to set issueSubscribed, if you open the buttonsheet to fast it has not updated!!!

you have to wait 1/2s to load the issue and then open the buttonsheet & your gitea version has to be 1.12 to test it

IssueDetailActivity.java has to set `issueSubscribed`, if you open the buttonsheet to fast it has not updated!!! you have to wait 1/2s to load the issue and then open the buttonsheet & your gitea version has to be 1.12 to test it
Owner

Maybe I was not clear, I just created new issue via web interface. Then I went to the same issue on the app and I see subscribe even I am subscribed to the issue. I haven't did anything on the app.

It should show subscribed.

Maybe I was not clear, I just created new issue via web interface. Then I went to the same issue on the app and I see subscribe even I am subscribed to the issue. I haven't did anything on the app. It should show subscribed.
Author
Member

where - we dont have a lable or some sort of indicatin to show the current subscribed state?

this is about the option to "de-subsubscribe" to an subscribed issue and visa versa

where - we dont have a lable or some sort of indicatin to show the current subscribed state? this is about the option to "de-subsubscribe" to an subscribed issue and visa versa
Owner

where

On a test server(local). I thought watchinfo will provide that label to know if user has subscribed to an issue or not.

I will have a deep look into it sometime tomorrow.

> where On a test server(local). I thought watchinfo will provide that label to know if user has subscribed to an issue or not. I will have a deep look into it sometime tomorrow.
Author
Member

conflicts resolved :)

conflicts resolved :)
Author
Member

@mmarif ping :)

@mmarif ping :)
Owner

@6543 It works nicely on 1.12.

On 1.11.5 though I have noticed this. For all issues it shows Subscribe and when you subcribe, the bottomsheet is dimissed and when you trigger bottomsheet it shows unsubscribe. All good so far.
Now go back to the repository screen and come again to that same issue it shows subscribe again.

If it is not possible to properly to do it in 1.11.x, let's disable it for that version. As it gives wrong impression to users and they think why I need to subscribe again.

The icons also need to be flipped for subscribe and unsubscribe.

@6543 It works nicely on 1.12. On 1.11.5 though I have noticed this. For all issues it shows Subscribe and when you subcribe, the bottomsheet is dimissed and when you trigger bottomsheet it shows unsubscribe. All good so far. Now go back to the repository screen and come again to that same issue it shows subscribe again. If it is not possible to properly to do it in 1.11.x, let's disable it for that version. As it gives wrong impression to users and they think why I need to subscribe again. **The icons also need to be flipped for subscribe and unsubscribe.**
Author
Member

ToDo:

  • Disable IssueSubscription for gitea <= 1.11
  • flip icons too <- they already do - @mmarif can you describe the issue more specific
ToDo: * [x] Disable IssueSubscription for gitea <= 1.11 * [x] ~~flip icons too~~ <- they already do - @mmarif can you describe the issue more specific
6543 added the
WIP
label 2020-05-17 22:08:07 +00:00
Author
Member

@mmarif ☝️

@mmarif ☝️
6543 removed the
WIP
label 2020-05-20 18:50:42 +00:00
Owner

By flip I mean the filled icon should show when Unsubscribe is visible which means that you are already subscribed.

By flip I mean the filled icon should show when `Unsubscribe` is visible which means that you are already subscribed.
Owner
Just swap line 87 and 99. https://gitea.com/gitnex/GitNex/src/branch/master/app/src/main/res/layout/bottom_sheet_single_issue.xml
6543 added 1 commit 2020-05-21 10:32:08 +00:00
switch icon as per @mmarif
All checks were successful
continuous-integration/drone/pr Build is passing
f9a01ab335
Author
Member

done

done
mmarif added 1 commit 2020-05-21 18:39:15 +00:00
Merge branch 'master' into imprufe-issue-subscription-checking
All checks were successful
continuous-integration/drone/pr Build is passing
b07f3d534f
mmarif added 1 commit 2020-05-21 18:42:56 +00:00
Update strings
All checks were successful
continuous-integration/drone/pr Build is passing
8c03a9a511
mmarif added 1 commit 2020-05-21 18:53:11 +00:00
update string names
All checks were successful
continuous-integration/drone/pr Build is passing
1644e3ba63
mmarif approved these changes 2020-05-21 18:54:09 +00:00
Dismissed
mmarif added
LGTM-done
and removed
LGTM-need
labels 2020-05-21 18:54:55 +00:00
mmarif merged commit e83b9eb736 into master 2020-05-21 18:58:07 +00:00
6543 deleted branch imprufe-issue-subscription-checking 2020-05-21 19:12:39 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitnex/GitNex#445
No description provided.