Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MIRACUM
dqa
DQAgui
Commits
1f7fbba8
Commit
1f7fbba8
authored
5 years ago
by
Jonathan Mang
Browse files
Options
Download
Email Patches
Plain Diff
Improved visibility of selected and active system on config tab
parent
2497f80f
master
colored_diff_summary
development
development-Differences
feat_new_coreds
fix_no_timefiltering
fix_settings_from_env
lab-module
latest
time_compare_fix
trino
v0.2.4
v0.2.3
v0.2.2
v0.2.1
v0.2.0
v0.1.9
v0.1.8
v0.1.7
v0.1.6
v0.1.5
v0.1.4
v0.1.3
v0.1.2
v0.1.1
v0.1.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
R/app_utils.R
+2
-2
R/app_utils.R
R/moduleConfig.R
+34
-21
R/moduleConfig.R
with
36 additions
and
23 deletions
+36
-23
R/app_utils.R
+
2
-
2
View file @
1f7fbba8
...
...
@@ -88,7 +88,7 @@ get_db_settings <- function(input, target = T) {
any
(
tab
[,
grepl
(
"\\s"
,
get
(
"value"
))]))
{
shiny
::
showModal
(
modalDialog
(
title
=
"Invalid
values
"
,
title
=
"Invalid
database configuration
"
,
"No empty strings or spaces allowed in database configurations."
)
)
...
...
@@ -112,7 +112,7 @@ get_db_settings <- function(input, target = T) {
feedback_txt
<-
function
(
system
,
type
)
{
result
<-
paste0
(
"\U2714 "
,
system
,
tags
$
b
(
system
)
,
" will be used as "
,
DQAstats
::
firstup
(
type
),
" system."
,
...
...
This diff is collapsed.
Click to expand it.
R/moduleConfig.R
+
34
-
21
View file @
1f7fbba8
...
...
@@ -482,6 +482,11 @@ module_config_server <-
})
observeEvent
(
input
$
source_pg_test_connection
,
{
# If we don't assign (= copy) it (input$source_pg_presettings_list)
# here, the value will stay reactive and change every time we
# select another system. But it should only change if
# we also successfully tested the connection:
input_system
<-
input
$
source_pg_presettings_list
rv
$
source
$
settings
<-
get_db_settings
(
input
=
input_re
(),
target
=
F
)
...
...
@@ -496,8 +501,8 @@ module_config_server <-
if
(
!
is.null
(
rv
$
source
$
db_con
))
{
DQAstats
::
feedback
(
paste0
(
"
DB c
onnection
for
"
,
input
$
source_pg_presettings_list
,
"
C
onnection
to
"
,
input
_system
,
" successfully established."
),
findme
=
"e35eaa306e"
,
...
...
@@ -507,8 +512,8 @@ module_config_server <-
showNotification
(
paste0
(
"\U2714 Connection to "
,
input
$
source_pg_presettings_list
,
" established"
input
_system
,
"
successfully
established"
)
)
updateActionButton
(
...
...
@@ -516,22 +521,23 @@ module_config_server <-
inputId
=
"source_pg_test_connection"
,
label
=
paste0
(
"Connection to "
,
input
$
source_pg_presettings_list
,
input
_system
,
" established"
),
icon
=
icon
(
"check"
)
)
shinyjs
::
disable
(
"source_pg_test_connection"
)
rv
$
source
$
system_name
<-
input
$
source_pg_presettings_list
rv
$
source
$
system_name
<-
input
_system
rv
$
source
$
system_type
<-
"postgres"
output
$
source_system_feedback_txt
<-
renderText
({
feedback_txt
(
system
=
"PostgreSQL"
,
type
=
"source"
)
feedback_txt
(
system
=
input_system
,
type
=
"source"
)
})
}
else
{
showNotification
(
paste0
(
"\U2718 Connection to "
,
input
$
source_pg_presettings_list
,
input
_system
,
" failed"
))
rv
$
source
$
system
<-
""
...
...
@@ -541,6 +547,11 @@ module_config_server <-
})
observeEvent
(
input
$
target_pg_test_connection
,
{
# If we don't assign (= copy) it (input$target_pg_presettings_list)
# here, the value will stay reactive and change every time we
# select another system. But it should only change if
# we also successfully tested the connection:
input_system
<-
input
$
target_pg_presettings_list
rv
$
target
$
settings
<-
get_db_settings
(
input
=
input_re
(),
target
=
T
)
...
...
@@ -555,8 +566,8 @@ module_config_server <-
if
(
!
is.null
(
rv
$
target
$
db_con
))
{
DQAstats
::
feedback
(
paste0
(
"
DB c
onnection
for
"
,
input
$
target_pg_presettings_list
,
"
C
onnection
to
"
,
input
_system
,
" successfully established."
),
findme
=
"1dc68937b8"
,
...
...
@@ -566,8 +577,8 @@ module_config_server <-
showNotification
(
paste0
(
"\U2714 Connection to "
,
input
$
target_pg_presettings_list
,
" established"
input
_system
,
"
successfully
established"
)
)
updateActionButton
(
...
...
@@ -575,22 +586,23 @@ module_config_server <-
inputId
=
"target_pg_test_connection"
,
label
=
paste0
(
"Connection to "
,
input
$
target_pg_presettings_list
,
input
_system
,
" established"
),
icon
=
icon
(
"check"
)
)
shinyjs
::
disable
(
"target_pg_test_connection"
)
rv
$
target
$
system_name
<-
input
$
target_pg_presettings_list
rv
$
target
$
system_name
<-
input
_system
rv
$
target
$
system_type
<-
"postgres"
output
$
target_system_feedback_txt
<-
renderText
({
feedback_txt
(
system
=
"PostgreSQL"
,
type
=
"target"
)
feedback_txt
(
system
=
input_system
,
type
=
"target"
)
})
}
else
{
showNotification
(
paste0
(
"\U2718 Connection to "
,
input
$
target_pg_presettings_list
,
input
_system
,
" failed"
))
rv
$
target
$
system
<-
""
...
...
@@ -703,10 +715,11 @@ module_config_server <-
# site name is missing:
shiny
::
showModal
(
shiny
::
modalDialog
(
title
=
"
Invalid values
"
,
title
=
"
The sitename is missing
"
,
paste0
(
"No empty strings or spaces allowed in "
,
"the site name configuration."
"There are no empty strings or spaces allowed in"
,
" the site name configuration."
,
" Please select your site name."
)
))
error_tmp
<-
T
...
...
@@ -1064,9 +1077,9 @@ module_config_ui <- function(id) {
box
(
title
=
"Load the data"
,
#solidHeader = T,
h4
(
text
Output
(
ns
(
"source_system_feedback_txt"
))),
h4
(
html
Output
(
ns
(
"source_system_feedback_txt"
))),
br
(),
h4
(
text
Output
(
ns
(
"target_system_feedback_txt"
))),
h4
(
html
Output
(
ns
(
"target_system_feedback_txt"
))),
br
(),
conditionalPanel
(
condition
=
paste0
(
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help