Page MenuHomePhabricator

Validate and autocomplete database names in the database input field
Closed, ResolvedPublic

Description

There is confusion around the new DB input field, the UX could be improved by making it clearer what should go in the field and showing hints when typing.

  • Make the textarea an input field. Add a label before the input.
  • Add autocomplete for the DB names

Confusion example:

Related tasks

Other thoughts

Event Timeline

Consider an implementation that also allows for database selection and resolves T76466 also.

dcaro moved this task from Planning to FY2021/2022-Q1 on the Quarry board.
dcaro edited projects, added Quarry (FY2021/2022-Q1); removed Quarry.
dcaro triaged this task as Medium priority.Aug 5 2021, 11:18 AM

Change 711456 had a related patch set uploaded (by David Caro; author: David Caro):

[analytics/quarry/web@master] Add database autocompletion

https://gerrit.wikimedia.org/r/711456

Change 711456 merged by David Caro:

[analytics/quarry/web@master] Add database autocompletion

https://gerrit.wikimedia.org/r/711456

Mentioned in SAL (#wikimedia-cloud) [2021-08-16T10:19:55Z] <dcaro> Deploying T287471 1/2 - creating DB index

Mentioned in SAL (#wikimedia-cloud) [2021-08-16T10:21:22Z] <dcaro> Deploying T287471 2/2 - updating code on the web and worker servers

Mentioned in SAL (#wikimedia-cloud) [2021-08-16T10:25:37Z] <dcaro> Reverting deploy of T287471 - saved queries fail to show the DB field, will open a task

Change 713237 had a related patch set uploaded (by David Caro; author: David Caro):

[analytics/quarry/web@master] Add database autocompletion

https://gerrit.wikimedia.org/r/713237

Change 713237 merged by jenkins-bot:

[analytics/quarry/web@master] Add database autocompletion

https://gerrit.wikimedia.org/r/713237

The validation added is kinda lose, as the data for the available databases gets populated from the queries that have been already run but it can't differentiate between those that have a valid DB or not, there's some filtering out obviously wrong DB names, but that's all.

We might want to tackle the validation in another way in the future (and maybe replace the backend /api/dbs call with something more trustworthy). For now seems to be good enough.

Change 714573 had a related patch set uploaded (by Michael DiPietro; author: David Caro):

[analytics/quarry/web@buster] Add database autocompletion

https://gerrit.wikimedia.org/r/714573

Change 714577 had a related patch set uploaded (by Michael DiPietro; author: David Caro):

[analytics/quarry/web@buster] Add database autocompletion

https://gerrit.wikimedia.org/r/714577

Change 714573 merged by jenkins-bot:

[analytics/quarry/web@buster] Add database autocompletion

https://gerrit.wikimedia.org/r/714573

Change 714577 merged by jenkins-bot:

[analytics/quarry/web@buster] Add database autocompletion

https://gerrit.wikimedia.org/r/714577