question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use containers name instead of numbers in import / export

See original GitHub issue

Describe the Bug/Feature

I’m using Cookie-AutoDelete along with containerise. Containerise’s main feature is automatically reopening tabs in their proper container, according to a CSV table. I use Cookie-AutoDelete’s containers support to have essentially cookies separated between containers.

Some days ago, a certain Firefox / extension update restored my containers to Firefox’ defaults (unreproducible + don’t know who to blame = haven’t reported a bug). Yet, it seems both extensions (CAD & Containerise) have kept their settings while I’ve had backups of them.

The problem I’ve encountered when trying to restore the settings, was that CAD’s export had keys such as:

  "firefox-container-14": [
    ...
  ],

Because I’ve had to recreate the containers (using “multi-account-containers”), CAD’s export was essentially useless because the “new” containers had different IDs.

Ideally, since I use both extensions, I could write a script that’d sync both extensions’ settings but that’s impossible since CAD’s importer (I assume) isn’t capable of referring to containers by name and not ID.

I assume implementing this will be a little bit difficult because we’d probably want keep backwards compatibility? On a second thought, I think, it’s a matter of:

if (key starts with firefox-container-) and (a container matches the key's id):
  // import cookie settings for this container (according to id)
else if (a container named "key" exists):
  // import cookie settings for this container (according to name)
end if

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:6
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kennethtran93commented, May 24, 2020

Good idea. I’ll need to look into it further.

1reaction
zigzampowcommented, May 23, 2020

What about a mapping option? User requests import and is met with a screen to map containers themselves. Gets around IDs, colors, spellings, etc

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to export and import containers with Docker | TechRepublic
The first thing you need to do is list out your containers. You'll be exporting them by name, so you need to know...
Read more >
Difference between vessel name and voyage number
Vessel name with voyage number are mentioned in Bill of lading of each shipment issued by carrier of goods. Some of you may...
Read more >
Tips for New Importers and Exporters
As an alternative, you may request a CBP assigned number by completing a CBP Form 5106 and presenting it to the Entry Branch...
Read more >
Container export and import - Tag Manager Help
Overwrite conflicting tags, triggers, and variables: If a variable, tag, or trigger in the new container has the same name but the contents...
Read more >
Bill of Lading Database, Import Export Data: PIERS | S&P Global
Bill of lading number · Vessel name, IMO code, voyage number · Ocean carrier/shipping line · NVOCC · Consignee name/address (only for U.S....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found