You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the connection form, choosing Service Type "Neptune Analytics" forces Query Language to openCypher and disables the Query Language select. If the user then unchecks "AWS IAM Auth Enabled", the Service Type select disappears but serviceType keeps the value neptune-graph. Query Language stays locked to openCypher, and the control that locked it is no longer on screen, so there's no way to see why or to undo it without re-checking IAM.
In packages/graph-explorer/src/modules/CreateConnection/CreateConnection.tsx:
onFormChange sets queryEngine: "openCypher" when serviceType becomes "neptune-graph".
The Query Language select is disabled={form.serviceType === "neptune-graph"}. It doesn't check whether IAM is still enabled.
Environment
Browser: any
Graph Explorer Version: current main
Graph Database & Version: any
Steps to Reproduce
Open Create Connection.
Check "AWS IAM Auth Enabled". On main this also needs "Using Proxy-Server".
Set Service Type to "Neptune Analytics". Query Language switches to openCypher and is disabled.
Uncheck "AWS IAM Auth Enabled".
See that Query Language is still disabled and set to openCypher, with no Service Type control visible.
Expected Behavior
Unchecking IAM gives the user back control of Query Language. I see two ways to do it:
Reset serviceType to "neptune-db" when IAM is unchecked.
Change the lock condition to awsAuthEnabled && serviceType === "neptune-graph", so the saved serviceType doesn't matter while IAM is off.
Description
In the connection form, choosing Service Type "Neptune Analytics" forces Query Language to openCypher and disables the Query Language select. If the user then unchecks "AWS IAM Auth Enabled", the Service Type select disappears but
serviceTypekeeps the valueneptune-graph. Query Language stays locked to openCypher, and the control that locked it is no longer on screen, so there's no way to see why or to undo it without re-checking IAM.In
packages/graph-explorer/src/modules/CreateConnection/CreateConnection.tsx:onFormChangesetsqueryEngine: "openCypher"whenserviceTypebecomes"neptune-graph".disabled={form.serviceType === "neptune-graph"}. It doesn't check whether IAM is still enabled.Environment
mainSteps to Reproduce
mainthis also needs "Using Proxy-Server".Expected Behavior
Unchecking IAM gives the user back control of Query Language. I see two ways to do it:
serviceTypeto"neptune-db"when IAM is unchecked.awsAuthEnabled && serviceType === "neptune-graph", so the savedserviceTypedoesn't matter while IAM is off.Either way, add a form test for this sequence.
Related Issues
Important
Internal only — this issue is maintained by the core team and is not accepting external contributions.