Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Improve user experience in datasource page #1471

Merged
merged 1 commit into from
Dec 16, 2019

Conversation

nauu
Copy link
Contributor

@nauu nauu commented Dec 13, 2019

What is the purpose of the pull request

For #1470 .
To improve user experience in datasource page, add default port for each type database.

  1. When create or edit datasource, there is a default vaule for port. If user changes type, the default value changes.

  2. Use local variables in browser memory, to cache user previous input port for each type. For example :
    time-a: MySQL default port is 3306 , user change 3306 to 4000.
    time-b: User change type from MySQL to ClickHouse , the port change from 4000 to 8123.
    time-c: User change type from ClickHouse back to MySQL,the port change from 8123 to 4000,use previous input cache to fillback.

  3. In edit datasource page, when the page first loads, use the query value fillback instead of default value.

Brief change log

  • Edit createDataSource.vue

Verify this pull request

  • Manually verified the change by testing locally.

To improve user experience in datasource page, add default port for each type database.

1. When create or edit datasource, there is a default vaule for port. If user changes type, the default value changes.
2. Use local variables in browser memory, to cache user previous input port for each type. For example :
	     time-a:  MySQL default  port is 3306 , user change 3306 to 4000.
         time-b:  User change type from MySQL to ClickHouse , the port change  from 4000 to 8123.
         time-c:  User change type from ClickHouse back to MySQL,the port change from 8123 to 4000,use previous input cache to fillback.

3. In edit datasource page, when the page first loads, use the query value fillback instead of default value.
@codecov-io
Copy link

Codecov Report

Merging #1471 into dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##             dev   #1471   +/-   ##
=====================================
  Coverage   0.22%   0.22%           
=====================================
  Files        271     271           
  Lines      13591   13591           
  Branches    2158    2158           
=====================================
  Hits          31      31           
  Misses     13550   13550           
  Partials      10      10

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6ec5f2e...eccd6c7. Read the comment docs.

Copy link
Contributor

@qiaozhanwei qiaozhanwei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants