Closed Bug 1531595 Opened 5 years ago Closed 5 years ago

Clean up FileLink, part 2

Categories

(Thunderbird :: FileLink, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 68.0

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(2 files)

In this part (hopefully):

  • Use promises instead of request listeners
  • Work out what to do if we lack space in the preferences tab
  • Use provider icons in the "select a provider" prompt
  • Anything else we think of at the time
  • Fix dozens of variables named "provider" that actually refer to an account.

Philipp, what's your opinion on converting the Box and Hightail providers to WebExtensions and shipping them in the same way as WeTransfer's? Or converting them to WebExtensions and shipping them on ATN? Either way existing users would have to reauthorise their accounts, but I can see a number of upsides.

Assignee: nobody → geoff
Status: NEW → ASSIGNED
Flags: needinfo?(philipp)

I think definitely move the to WX.
Indeed moving them to ATN could make sense too.

Blocks: 1536268
No longer blocks: 1536268

Moving to ATN it would be good to have a maintainer, maybe even someone at Box/Hightail. I agree migrating to WX though. Maybe we can have some custom migration code that would allow people to keep their tokens? I'm also considering we might need a way for add-ons to write to the logins API specifically for their add-on, without being able to read all the remaining secrets.

Flags: needinfo?(philipp)

Maybe we can have some custom migration code that would allow people to keep their tokens?

I don't think that's going to be possible, as I had to create a new app on the website to make things work, so the stored tokens are useless.

Here's all the changes I've done so far except the removal of Box and Hightail.

I have a 80%-complete WebExtension for Box, and I think we should just stop supporting Hightail.

The "find more providers…" link I want to connect to a new ATN category, but for now it links to the FileLink tag on ATN.

I'm starting to think there'll be a part 3…

Attachment #9054118 - Flags: review?(philipp)

Discussed with the council about Box and Hightail, and there seemed to be agreement we can stop shipping both. But for Box we'll dig into how the setup was done first.

Comment on attachment 9054118 [details] [diff] [review]
1531595-cloudfile-part2-1.diff

Review of attachment 9054118 [details] [diff] [review]:
-----------------------------------------------------------------

::: mail/components/compose/content/MsgComposeCommands.js
@@ +1518,5 @@
> +    attachment.cloudFileAccountKey = cloudFileAccount.accountKey;
> +    if (attachmentItem) {
> +      // Update relevant bits on the attachment list item.
> +      if (!attachmentItem.originalUrl)
> +        attachmentItem.originalUrl = originalUrl;

Can we add some brackets for the one-line ifs and spacing here? This area seems a bit crammed.

@@ +1590,5 @@
> +    if (displayError) {
> +      let url = cloudFileAccount.providerUrlForError &&
> +                cloudFileAccount.providerUrlForError(statusCode);
> +      let flags = Services.prompt.BUTTON_POS_0 * Services.prompt.BUTTON_TITLE_OK;
> +      if (url)

Hmm I guess the missing brackets are prevailing style in mail. I'm not a fan, but I take that part back if necessary.
Attachment #9054118 - Flags: review?(philipp) → review+

Removes the Box and Hightail providers.

Attachment #9058472 - Flags: review?(philipp)
Blocks: 1542991
Comment on attachment 9058472 [details] [diff] [review]
1531595-cloudfile-part2-remove-providers-1.diff

Review of attachment 9058472 [details] [diff] [review]:
-----------------------------------------------------------------

r+ pending approval to remove, there are a few things on council side we need to clarify. I'll see if we can get these into an extension, if you happen to already have done that work it would be great! (Yes, probably mostly just taking previous patch versions :)
Attachment #9058472 - Flags: review?(philipp) → review+

Last I heard the box is he has the extension code for. Hightail was... less fun so we might just drop it. (They terminated the contract many years ago anyway.)

Correct, I have an almost-complete extension for Box. I haven't attempted to do Hightail and wasn't planning to.

What is happening here? Do we land these changes?

Flags: needinfo?(philipp)

This patch can land.

Flags: needinfo?(philipp)

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/ff752764d9f7
Further improvements to FileLink; r=Fallen
https://hg.mozilla.org/comm-central/rev/4054e820674c
Remove Box and Hightail FileLink providers; r=Fallen

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 68.0
Blocks: 1679295
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: