Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pykat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
finesse
pykat
Commits
82f4c06f
Commit
82f4c06f
authored
11 years ago
by
Daniel Brown
Browse files
Options
Downloads
Patches
Plain Diff
js code to inform on update of branch and log lists
parent
f3c621a2
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pykat/testing/utils.py
+3
-3
3 additions, 3 deletions
pykat/testing/utils.py
pykat/testing/web/templates/finesse_test.html
+13
-0
13 additions, 0 deletions
pykat/testing/web/templates/finesse_test.html
with
16 additions
and
3 deletions
pykat/testing/utils.py
+
3
−
3
View file @
82f4c06f
...
@@ -10,14 +10,14 @@ class RunException(Exception):
...
@@ -10,14 +10,14 @@ class RunException(Exception):
self
.
err
=
err
self
.
err
=
err
self
.
out
=
out
self
.
out
=
out
def
git
(
args
):
def
git
(
args
,
git_bin
=
GIT_BIN
):
cmd
=
""
cmd
=
""
if
type
(
args
)
is
list
:
if
type
(
args
)
is
list
:
args
.
insert
(
0
,
GIT_BIN
)
args
.
insert
(
0
,
git_bin
)
cmd
=
"
"
.
join
(
args
)
cmd
=
"
"
.
join
(
args
)
else
:
else
:
cmd
=
GIT_BIN
+
"
"
+
args
cmd
=
git_bin
+
"
"
+
args
print
cmd
print
cmd
...
...
This diff is collapsed.
Click to expand it.
pykat/testing/web/templates/finesse_test.html
+
13
−
0
View file @
82f4c06f
...
@@ -81,6 +81,8 @@
...
@@ -81,6 +81,8 @@
$
(
"
#branch_list
"
).
change
(
function
(){
$
(
"
#branch_list
"
).
change
(
function
(){
$
(
"
#commit_list
"
).
empty
();
$
(
"
#commit_list
"
).
empty
();
$
(
'
#commit_list
'
).
attr
(
"
disabled
"
,
true
);
$
(
"
#commit_list
"
).
append
(
$
(
'
<option>
'
,
{
value
:
0
,
text
:
"
Loading log enteries, please wait...
"
}));
updateLogEntries
();
updateLogEntries
();
});
});
...
@@ -220,6 +222,14 @@
...
@@ -220,6 +222,14 @@
$
(
"
#btnStartTest
"
).
attr
(
"
disabled
"
,
true
);
$
(
"
#btnStartTest
"
).
attr
(
"
disabled
"
,
true
);
blist
=
$
(
"
#branch_list
"
);
blist
=
$
(
"
#branch_list
"
);
$
(
"
#commit_list
"
).
empty
();
$
(
'
#commit_list
'
).
attr
(
"
disabled
"
,
true
);
$
(
"
#commit_list
"
).
append
(
$
(
'
<option>
'
,
{
value
:
0
,
text
:
"
Loading log enteries, please wait...
"
}));
blist
.
empty
();
blist
.
attr
(
"
disabled
"
,
true
);
blist
.
append
(
$
(
'
<option>
'
,
{
value
:
0
,
text
:
"
Loading branches, please wait...
"
}));
$
.
ajax
({
$
.
ajax
({
type
:
"
POST
"
,
type
:
"
POST
"
,
contentType
:
"
application/json; charset=utf-8
"
,
contentType
:
"
application/json; charset=utf-8
"
,
...
@@ -258,6 +268,9 @@
...
@@ -258,6 +268,9 @@
list
.
append
(
$
(
'
<option>
'
,
{
value
:
logs
[
i
].
commit
,
text
:
logs
[
i
].
commit
+
"
-
"
+
logs
[
i
].
message
}));
list
.
append
(
$
(
'
<option>
'
,
{
value
:
logs
[
i
].
commit
,
text
:
logs
[
i
].
commit
+
"
-
"
+
logs
[
i
].
message
}));
}
}
$
(
"
#btnStartTest
"
).
attr
(
"
disabled
"
,
false
);
$
(
"
#btnStartTest
"
).
attr
(
"
disabled
"
,
false
);
list
.
attr
(
"
disabled
"
,
false
);
$
(
"
#branch_list
"
).
attr
(
"
disabled
"
,
false
);
},
},
error
:
function
(
jqXHR
,
textStatus
,
err
){
error
:
function
(
jqXHR
,
textStatus
,
err
){
console
.
log
(
'
error:
'
+
err
);
console
.
log
(
'
error:
'
+
err
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment