Code Monkey home page Code Monkey logo

Comments (3)

kevinburke avatar kevinburke commented on July 18, 2024

sounds good! Want to submit a PR

On Wednesday, January 20, 2016, Max Kovgan [email protected] wrote:

NOTE: this is 1 of 2 issues causing these bugs #86
#86 and #73
#73

A regex used in several isJob_() methods does: return
path.match(/^/job/.?//) !== null;, or similar.
This regex assumes the value of window.location.pathname on a job page
would always start with /job. This is untrue for various setups, esp.
when jenkins is behind a reverse proxy of nginx/apachehttpd/etc., so the
value of window.location.pathname can be /ci/job, or even nested:
/apps/ci/job. failing to detect we're on a job page results in missing
"Build Now" button.
I'm suggesting this regex: return path.match(/^/(.
/)?job/._?//), it
allows the above paths, but probably could use some finer-tuning.


Reply to this email directly or view it on GitHub
#91.

Kevin Burke
925.271.7005 | kev.inburke.com

from doony.

kevinburke avatar kevinburke commented on July 18, 2024

The compile process for this project is kind of a nightmare just make the
change and I can do the rest

On Wednesday, January 20, 2016, Kevin Burke [email protected] wrote:

sounds good! Want to submit a PR

On Wednesday, January 20, 2016, Max Kovgan <[email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:

NOTE: this is 1 of 2 issues causing these bugs #86
#86 and #73
#73

A regex used in several isJob_() methods does: return
path.match(/^/job/.?//) !== null;, or similar.
This regex assumes the value of window.location.pathname on a job page
would always start with /job. This is untrue for various setups, esp.
when jenkins is behind a reverse proxy of nginx/apachehttpd/etc., so the
value of window.location.pathname can be /ci/job, or even nested:
/apps/ci/job. failing to detect we're on a job page results in missing
"Build Now" button.
I'm suggesting this regex: return path.match(/^/(.
/)?job/._?//), it
allows the above paths, but probably could use some finer-tuning.


Reply to this email directly or view it on GitHub
#91.

Kevin Burke
925.271.7005 | kev.inburke.com

Kevin Burke
925.271.7005 | kev.inburke.com

from doony.

mvk avatar mvk commented on July 18, 2024

@kevinburke I think I can run make,
Actually this patch should be added after the 2nd one, b/c until the 2nd one is constructing good request - this one will expose the button which doesn't work.

from doony.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.