Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-8543

Update charts url instance name field in Compass web

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 1
    • Iteration P (Nov 18 -Dec 2)
    • Developer Tools

      https://mongodb.slack.com/archives/C066YP06SRZ/p1732227611853839 

      I'm investigating a related issue for the Cloud Nav, but i've noticed the new compass experience has an issue with the Visualise your data button, specifically the name of the query params used:Here's a url in cloud-dev from the network tab:
       
      https://cloud-dev.mongodb.com/charts/673abb60c8f6a96debead9e3?sourceType=cluster&instanceName=Cluster0&database=A&collection=B&utm_source=DE&utm_medium=product
      Here's a url in prod, old experience
       
      https://cloud.mongodb.com/charts/5bd10032cf09a25d83b2d10c?sourceType=cluster&name=charts-sample-data-dev&database=sample_data&collection=iot
      Key thing here is just we're using instanceName instead of name for the query param, this causes the ChartsResource to ignore the deep link and just go to Charts.The query params in ChartsResource in MMS:
       
      interface RedirectParams { String SOURCE_TYPE = "sourceType"; String NAME = "name"; <-------- (Name, not instanceName) String DATABASE = "database"; String COLLECTION = "collection"; String EMBEDDING = "embedding"; }

      https://github.com/mongodb-js/compass/blob/b3eea8a6f5fdd323f8609eb1eaf75d4d38df30d8/packages/compass-collection/src/components/collection-header-actions/collection-header-actions.tsx#L31 

            Assignee:
            rhys.howell@mongodb.com Rhys Howell
            Reporter:
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: