microsoft / AzUrlShortener

An simple and easy Url Shortener
MIT License
500 stars 510 forks source link

Feature request - show archived URLs in Blazer UI #99

Open fs366e2spm opened 4 years ago

fs366e2spm commented 4 years ago

Hi,

As now URLs can be archived, how can they be seen? Can an option be implemented to show either

┆Issue is synchronized with this Trello card by Unito

AK0785 commented 4 years ago

Just for context, I had some early discussions on this with @FBoucher and @kmm7 during the implementation of Archived URLs. The general consensus was there is limited value and the UI would probably become confused. It could be done, but it would require a separate table in all likelihood to ensure that the User had clear context for whether they were viewing Live or Archived URLs. What would the Use Case be for wanting to see Archived URLs? I presume if you have Archived them, you are no longer using the shortened version?

fs366e2spm commented 4 years ago

Thanks for explaining the context and that you already had this discussion. I'm currently not sure why two tables would be required as if I'm right all URLs the active and the archived ones are in the UrlsDetails table. So it would be just a "UI" thing to display archived ones as well or not (please correct me if I'm wrong).

If it makes sense or if it confuses is another story.

My "problem" I see, once a vanity URL has been used, it's blocked forever. Either I can re-activate it or create a new URL with the same vanity URL (which counts the click independent of course).

Just as an idea for another issue/request how it could be solved - input of course very welcome: This could also be solved in another way, not using the rowkey column as key but using an internal key and checking if an active url with the wished (vanity) short URL is there (column ID would already be there). Or of course provide a possibility to complete delete an archived URL so the same vanity URL can be re-used with the consequence that the old click history gets lost.

FBoucher commented 4 years ago

We definitely need a way to see the archived URLs.

That said should we do it in a new Archived page or have some checkbox (active, archived) on top of the grid that act as filter... I'm open.

stevenhayles commented 10 months ago

Archived URLs will still redirect. Is that a bug or do I not understand the purpose of archiving?

fboucheros commented 10 months ago

@stevenhayles totally a bug would you please create a new issue for it please? :)

stevenhayles commented 10 months ago

Created https://github.com/microsoft/AzUrlShortener/issues/510 "Archived URLs generate redirects"