[COMPASS-5473] Handle appName on connect / save and load Created: 31/Jan/22  Updated: 29/Oct/23  Resolved: 09/Feb/22

Status: Closed
Project: Compass
Component/s: Connectivity
Affects Version/s: None
Fix Version/s: 1.31.0

Type: Bug Priority: Major - P3
Reporter: Rhys Howell Assignee: Maurizio Casimirri
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: COMPASS-4948
Story Points: 3
Documentation Changes: Not Needed
Sprint: Iteration Tokyo, Iteration Utica

 Description   

Remove appName in the connection string copied when using the `Copy Connection String` menu action on a stored connection.



 Comments   
Comment by Githook User [ 15/Feb/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: feat(compass-components): add useToast COMPASS-5473 (#2765)

  • feat(compass-components): add useToast
  • fix button position
  • fix import
  • fix tests
  • remove duplicated open toast and skip failing test
  • fix failing test
  • attempt to test the hook
  • Update packages/compass-components/src/hooks/use-toast.tsx

Co-authored-by: Sergey Petushkov <petushkov.sergey@gmail.com>

  • move state to wrapper component
  • set toast from prev state
  • debug test
  • use react types
  • add basic tests for useToast
  • fix tests
  • clear timeouts on unmount

Co-authored-by: Sergey Petushkov <petushkov.sergey@gmail.com>
Branch: 1.31-releases
https://github.com/mongodb-js/compass/commit/1835f28210a167c714cedd743cf1c06426b533b6

Comment by Githook User [ 15/Feb/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: feat(connect-form): set appName on connect and don't save it COMPASS-5473 (#2764)

  • feat: set appName on connect and don't save it
  • test remove appName on save/load
  • remove interpolation
  • fix useConnections usage
  • Update packages/data-service/src/connection-storage.ts

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>

  • only replace appname if is mongodb compass
  • Update packages/connections/src/stores/connections-store.ts

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>

  • fix searchParams and remove .only
  • use appName from compass home
  • Update test, namespace timer away from waitFor, update connect with appName
  • reformat

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>
Co-authored-by: Anemy <rhysh@live.com>
Branch: 1.31-releases
https://github.com/mongodb-js/compass/commit/86c5bbac42a2e85f6f0b2ec47675de6d3eee5442

Comment by Githook User [ 14/Feb/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: feat(compass-components): add useToast COMPASS-5473 (#2765)

  • feat(compass-components): add useToast
  • fix button position
  • fix import
  • fix tests
  • remove duplicated open toast and skip failing test
  • fix failing test
  • attempt to test the hook
  • Update packages/compass-components/src/hooks/use-toast.tsx

Co-authored-by: Sergey Petushkov <petushkov.sergey@gmail.com>

  • move state to wrapper component
  • set toast from prev state
  • debug test
  • use react types
  • add basic tests for useToast
  • fix tests
  • clear timeouts on unmount

Co-authored-by: Sergey Petushkov <petushkov.sergey@gmail.com>
Branch: COMPASS-5482-namespace-bootstrap-out-of-connnection-form
https://github.com/mongodb-js/compass/commit/1835f28210a167c714cedd743cf1c06426b533b6

Comment by Githook User [ 10/Feb/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: feat(compass-components): add useToast COMPASS-5473 (#2765)

  • feat(compass-components): add useToast
  • fix button position
  • fix import
  • fix tests
  • remove duplicated open toast and skip failing test
  • fix failing test
  • attempt to test the hook
  • Update packages/compass-components/src/hooks/use-toast.tsx

Co-authored-by: Sergey Petushkov <petushkov.sergey@gmail.com>

  • move state to wrapper component
  • set toast from prev state
  • debug test
  • use react types
  • add basic tests for useToast
  • fix tests
  • clear timeouts on unmount

Co-authored-by: Sergey Petushkov <petushkov.sergey@gmail.com>
Branch: COMPASS-5427-rename-new-connect-packages
https://github.com/mongodb-js/compass/commit/1835f28210a167c714cedd743cf1c06426b533b6

Comment by Githook User [ 10/Feb/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: feat(compass-components): add useToast COMPASS-5473 (#2765)

  • feat(compass-components): add useToast
  • fix button position
  • fix import
  • fix tests
  • remove duplicated open toast and skip failing test
  • fix failing test
  • attempt to test the hook
  • Update packages/compass-components/src/hooks/use-toast.tsx

Co-authored-by: Sergey Petushkov <petushkov.sergey@gmail.com>

  • move state to wrapper component
  • set toast from prev state
  • debug test
  • use react types
  • add basic tests for useToast
  • fix tests
  • clear timeouts on unmount

Co-authored-by: Sergey Petushkov <petushkov.sergey@gmail.com>
Branch: main
https://github.com/mongodb-js/compass/commit/1835f28210a167c714cedd743cf1c06426b533b6

Comment by Githook User [ 08/Feb/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: feat(connect-form): set appName on connect and don't save it COMPASS-5473 (#2764)

  • feat: set appName on connect and don't save it
  • test remove appName on save/load
  • remove interpolation
  • fix useConnections usage
  • Update packages/data-service/src/connection-storage.ts

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>

  • only replace appname if is mongodb compass
  • Update packages/connections/src/stores/connections-store.ts

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>

  • fix searchParams and remove .only
  • use appName from compass home
  • Update test, namespace timer away from waitFor, update connect with appName
  • reformat

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>
Co-authored-by: Anemy <rhysh@live.com>
Branch: COMPASS-5427-rename-new-connect-packages
https://github.com/mongodb-js/compass/commit/86c5bbac42a2e85f6f0b2ec47675de6d3eee5442

Comment by Githook User [ 08/Feb/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: feat(connect-form): set appName on connect and don't save it COMPASS-5473 (#2764)

  • feat: set appName on connect and don't save it
  • test remove appName on save/load
  • remove interpolation
  • fix useConnections usage
  • Update packages/data-service/src/connection-storage.ts

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>

  • only replace appname if is mongodb compass
  • Update packages/connections/src/stores/connections-store.ts

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>

  • fix searchParams and remove .only
  • use appName from compass home
  • Update test, namespace timer away from waitFor, update connect with appName
  • reformat

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>
Co-authored-by: Anemy <rhysh@live.com>
Branch: main
https://github.com/mongodb-js/compass/commit/86c5bbac42a2e85f6f0b2ec47675de6d3eee5442

Generated at Wed Feb 07 22:39:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.