Added pre-version version
No fetch and load errors can be properly seen without having to run ironsmith manually.
This commit is contained in:
parent
219efef570
commit
0f165681ac
File diff suppressed because one or more lines are too long
2
cycle.go
2
cycle.go
@ -32,7 +32,7 @@ func (p *Project) load() {
|
|||||||
defer p.processing.Unlock()
|
defer p.processing.Unlock()
|
||||||
|
|
||||||
p.setStage(stageLoad)
|
p.setStage(stageLoad)
|
||||||
p.setVersion("")
|
p.setVersion("Version not yet set")
|
||||||
|
|
||||||
if p.filename == "" {
|
if p.filename == "" {
|
||||||
p.errHandled(errors.New("Invalid project file name"))
|
p.errHandled(errors.New("Invalid project file name"))
|
||||||
|
@ -135,7 +135,11 @@ Ractive.DEBUG = false;
|
|||||||
function getVersion(id, version) {
|
function getVersion(id, version) {
|
||||||
get("/log/" + id + "/" + version,
|
get("/log/" + id + "/" + version,
|
||||||
function(result) {
|
function(result) {
|
||||||
r.set("version", version);
|
if (!result.data || !result.data.length || !result.data[0].version) {
|
||||||
|
r.set("version", version);
|
||||||
|
} else {
|
||||||
|
r.set("version", result.data[0].version);
|
||||||
|
}
|
||||||
r.set("stages", result.data);
|
r.set("stages", result.data);
|
||||||
},
|
},
|
||||||
function(result) {
|
function(result) {
|
||||||
@ -171,8 +175,8 @@ Ractive.DEBUG = false;
|
|||||||
//statuses
|
//statuses
|
||||||
if (project.stage != "waiting") {
|
if (project.stage != "waiting") {
|
||||||
project.status = project.stage;
|
project.status = project.stage;
|
||||||
} else if(!project.lastLog || !project.lastLog.version) {
|
} else if (!project.lastLog || !project.lastLog.version) {
|
||||||
project.status = "waiting";
|
project.status = "waiting";
|
||||||
} else if (project.lastLog.version.trim() == project.releaseVersion.trim()) {
|
} else if (project.lastLog.version.trim() == project.releaseVersion.trim()) {
|
||||||
project.status = "Successfully Released";
|
project.status = "Successfully Released";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user