Closed marcellourbani closed 9 years ago
I love the deep linking idea, but the broadness of the intent filter concerns me. Is there a way we can make it something like https?://.*/browse/[a-zA-Z0-9]+-[0-9]+ or something similar? Effectively whatever Jira's regex is for issue IDs.
Didn't try that for 2 reasons : 1) not sure what is the actual jira regex 2) looks like it is a simple glob, only does *, no square brackets
Marcello On 24 Mar 2015 23:36, "Ilya Kogan" notifications@github.com wrote:
I love the deep linking idea, but the broadness of the intent filter concerns me. Is there a way we can make it something like https?://.*/browse/[a-zA-Z0-9]+-[0-9]+ or something similar? Effectively whatever Jira's regex is for issue IDs.
— Reply to this email directly or view it on GitHub https://github.com/tmszdmsk/arij/pull/23#issuecomment-85740482.
I hate having it broad, but can't find better other than compiling with my prefix in full. Don't think is a disaster though : the user is more likely to pick chrome than us for random links. On 24 Mar 2015 23:46, "Marcello Urbani" marcello.urbani@gmail.com wrote:
Didn't try that for 2 reasons : 1) not sure what is the actual jira regex 2) looks like it is a simple glob, only does *, no square brackets
Marcello On 24 Mar 2015 23:36, "Ilya Kogan" notifications@github.com wrote:
I love the deep linking idea, but the broadness of the intent filter concerns me. Is there a way we can make it something like https?://.*/browse/[a-zA-Z0-9]+-[0-9]+ or something similar? Effectively whatever Jira's regex is for issue IDs.
— Reply to this email directly or view it on GitHub https://github.com/tmszdmsk/arij/pull/23#issuecomment-85740482.
You're correct, it looks like globbing is all you've got. What if you did something like /browse/-?
/browse is there. Will try .-. On 25 Mar 2015 00:28, "Ilya Kogan" notifications@github.com wrote:
You're correct, it looks like globbing is all you've got. What if you did something like /browser/-?
— Reply to this email directly or view it on GitHub https://github.com/tmszdmsk/arij/pull/23#issuecomment-85756040.
/browse/.-. works, updated in the repository. Not sure whether I need a new pull request
On Wed, Mar 25, 2015 at 6:06 AM, Marcello Urbani marcello.urbani@gmail.com wrote:
/browse is there. Will try .-. On 25 Mar 2015 00:28, "Ilya Kogan" notifications@github.com wrote:
You're correct, it looks like globbing is all you've got. What if you did something like /browser/-?
— Reply to this email directly or view it on GitHub https://github.com/tmszdmsk/arij/pull/23#issuecomment-85756040.
Great improvement. I added some general comments. Will have a closer look in the evening (Warsaw time ;). Thanks.
Ok, I have few comments:
Please, write if you want to work more on those features.
Point by point:
Last but not least: I do plan to work on this (at least to deliver the deeplink and truncation) but I'm doing it in my spare time, don't hold your breath :)
On Thu, Mar 26, 2015 at 5:38 AM, Tomasz Adamski notifications@github.com wrote:
Ok, I have few comments:
- I think that it's a good practice to put different features in separate pull requests requests (In this case there should be three of them i think)
- As i wrote in a comment, "truncation" should be defined in layout xml file
- I researched deeplinking mechanism some time ago, and yes, from what I've found it's not possible to specify patterns dynamically.
- I'm not sure that handling of those links should be done in AccountsList activity. I would put it in separate component that listens for those intents. I'm not "Android expert" but I guess it can be done in form of intentservice.
- about the .iml files: I know i've put them there. They can be safely deleted.
Please, write if you want to work more on those features.
— Reply to this email directly or view it on GitHub https://github.com/tmszdmsk/arij/pull/23#issuecomment-86350213.
Tomasz, I have three changes here: 1) deep linking 2) smaller font in issue list, show last 4 char 3) dummy changes to get it to build in my version of android studio. I think the first might interest you, it's a bit unpolished (see below) but works, the rest is your call. Notes on the deep link: -first version removed the account list from history, but then it was VERY tricky to change account or even go to an issue list. -couldn't find a way to make it react to specific URLs it didn't know in advance. So it will be proposed for any URL who matches https:browse/ -if you enter with an url for which you don't have an account it tells you in a dialog, but doesn't show the add account activity with the missing prefix