codetree / feedback

A central hub for user feedback for Codetree
https://codetree.com
20 stars 15 forks source link

"New Epic" does not create new issues #363

Closed shlomi-nx closed 5 years ago

shlomi-nx commented 5 years ago

For the past few days, trying the create a new epic simply keeps saying "saving" but nothing is created.

I tried deleting cache, logout/login, different browsers (chrome/safari).

Any workarounds for the moment?

shlomi-nx commented 5 years ago

Looking at the console, I see

application-45417344ff86fe582ba3deac9a84b8da.js:6 Uncaught TypeError: Cannot read property 'added_labels' of undefined
    at h.submit (application-45417344ff86fe582ba3deac9a84b8da.js:6)
    at h.<anonymous> (frameworks-39816068afde52aba78cfed201521fa4.js:224)
    at Array.forEach (<anonymous>)
    at h.<anonymous> (frameworks-39816068afde52aba78cfed201521fa4.js:224)
    at HTMLDivElement.dispatch (frameworks-39816068afde52aba78cfed201521fa4.js:26)
    at HTMLDivElement.m.handle (frameworks-39816068afde52aba78cfed201521fa4.js:25)
    at HTMLDivElement.C.t.___hb.t.___hb (frameworks-39816068afde52aba78cfed201521fa4.js:342)
submit @ application-45417344ff86fe582ba3deac9a84b8da.js:6
(anonymous) @ frameworks-39816068afde52aba78cfed201521fa4.js:224
(anonymous) @ frameworks-39816068afde52aba78cfed201521fa4.js:224
dispatch @ frameworks-39816068afde52aba78cfed201521fa4.js:26
m.handle @ frameworks-39816068afde52aba78cfed201521fa4.js:25
C.t.___hb.t.___hb @ frameworks-39816068afde52aba78cfed201521fa4.js:342
shlomi-nx commented 5 years ago

Which takes to this:

this.submit = function() {
        if (this.clearErrors(),
        this.isValid()) {
            this.disable(),
            this.$node.attr("data-state", "submitting");
            var e = {
                projectId: this.projectId(),
                filter: this.currentParams(),
                params: this.serializeForm()
            }
              , t = this.select("stageModalSelector").filter(":checked").data("transform");
            t.added_labels && (e.params.labels = e.params.labels.concat(t.added_labels));        /// This line is underlined as the error
            var i = "epic" === this.issueType() ? "uiCreateEpicRequested" : "uiCreateIssueRequested";
            return this.trigger(i, e)
        }
        return this.displayErrors(this.errors)
    }
ac21 commented 5 years ago

Hey @shlomi-nx - thanks for raising attention to this issue. Working on it now and hoping to have a fix by EOD tomorrow

shlomi-nx commented 5 years ago

If anyone else is stuck here, for a workaround add some random tags and create the epic. Afterwards remove the tags. Worked for me.

ac21 commented 5 years ago

links to codetree/codetree#2367

ac21 commented 5 years ago

resolved by codetree/codetree#2367