[allura:tickets] Ticket 4542 discussion

2015-01-30 Thread Igor Bondarenko
- **status**: in-progress -- review
- **Comment**:

Closed #714. `ib/4542` (It's in my fork 
https://forge-allura.apache.org/u/jetmind/allura/ci/master/tree/). Can't push 
it to main repo somehow:

~
$ git push origin t714_webhooks:ib/4542
Counting objects: 258, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (83/83), done.
Writing objects: 100% (87/87), 25.78 KiB | 0 bytes/s, done.
Total 87 (delta 66), reused 0 (delta 0)
error: RPC failed; result=56, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
~

#  To QA:

To test without any external service I've used http://httpbin.org

- add http://httpbin.org/post as hook url
- add `log.info(r.content)` to `send_webhook` task, after `requests.post` call

http://httpbin.org/post will simply return your request's POST data, headers, 
etc, so you can see what payload actually sent.

But test with something like Travis CI also :)

Also:

- make sure it works for git, svn, mercurial
- test with big pushes (hundreds of commits?)


# Some optional areas for future improvements (inspired by GitHub mostly):

- thresholds (already have a ticket for it on 42cc side)
- send ping event to hook url after configuration, like github does. It's 
useful to ensure that webhook configured properly, without triggering event by 
repo push
- add ignore insecure ssl option, it's useful for testing
- support payload with `application/x-www-form-urlencoded` mime type
- show response/error in UI for webhooks fired (last 5 maybe?)



---

** [tickets:#4542] Implement webhooks**

**Status:** review
**Milestone:** unreleased
**Labels:** sf-current sf-8 42cc 
**Created:** Fri Jul 13, 2012 02:55 PM UTC by Dave Brondsema
**Last Updated:** Fri Jan 16, 2015 05:40 PM UTC
**Owner:** Igor Bondarenko

We should have webhooks, compatible with github  bitbucket.  I don't see a 
spec for SCM webhooks anywhere.


---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7822 Should not show draft blog post changes in activity stream

2015-01-30 Thread Dave Brondsema



---

** [tickets:#7822] Should not show draft blog post changes in activity stream**

**Status:** open
**Milestone:** unreleased
**Created:** Fri Jan 30, 2015 10:51 PM UTC by Dave Brondsema
**Last Updated:** Fri Jan 30, 2015 10:51 PM UTC
**Owner:** nobody

If you have a blog/news post in draft status and edit it, an activity stream 
entry will be created: SomeUser modified a blog post.  It should not do that 
since the post is a draft.  (Creating the draft is correct, no activity entry 
is created)


---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

Re: Troubles with my allura setup after an update

2015-01-30 Thread Dave Brondsema
I think the 'allura.css' file didn't load.  Occasionally we've seen issues with
CSS files not loading the first time because they were served by the app with
the wrong mime-type the first time.  You can try clearing browser caches and
refreshing, but a more reliable way would be to edit your development.ini file
and update the build_key field.  Just set it to any new number, and that will
cause all the CSS urls to be updated and thus browsers will fetch them fresh and
hopefully it will all work.

On 1/29/15 4:23 PM, mosbah abdelkader wrote:
 Thank you for your reply.
 
 .I use git to upgrade. It doesn't work with chrome nor firefox .
 
 the image link:http://imgur.com/9OYV7Me
 
 On Thu, Jan 29, 2015 at 7:10 PM, Dave Brondsema d...@brondsema.net wrote:
 
 Hi,

 What versions did you upgrade?  Was it released versions like 1.1.0 and
 1.2.0?
 Or were you using a git revision?

 The image didn't come through (I think this list doesn't allow
 attachments).
 Could you try uploading it somewhere (e.g. imgur) and sending the link?

 Also wondering what browser you are using and if it works in any other
 browser.

 -Dave

 On 1/29/15 10:54 AM, mosbah abdelkader wrote:
 Hello all,


 First, I would like to thank you for this great piece of software.


 Since last update (done this week), I get some issues on the web
 interface of
 allura. Especially some icons are replaced by letters as shown on the
 attached
 picture.


 Has anyone any idea about fixing that.


 Thank you.Inline image 1



 --
 Dave Brondsema : d...@brondsema.net
 http://www.brondsema.net : personal
 http://www.splike.com : programming
   

 



-- 
Dave Brondsema : d...@brondsema.net
http://www.brondsema.net : personal
http://www.splike.com : programming
  


Re: Troubles with my allura setup after an update

2015-01-30 Thread mosbah abdelkader
ok thank you.

On Fri, Jan 30, 2015 at 5:58 PM, Dave Brondsema d...@brondsema.net wrote:

 I think the 'allura.css' file didn't load.  Occasionally we've seen issues
 with
 CSS files not loading the first time because they were served by the app
 with
 the wrong mime-type the first time.  You can try clearing browser caches
 and
 refreshing, but a more reliable way would be to edit your development.ini
 file
 and update the build_key field.  Just set it to any new number, and that
 will
 cause all the CSS urls to be updated and thus browsers will fetch them
 fresh and
 hopefully it will all work.

 On 1/29/15 4:23 PM, mosbah abdelkader wrote:
  Thank you for your reply.
 
  .I use git to upgrade. It doesn't work with chrome nor firefox .
 
  the image link:http://imgur.com/9OYV7Me
 
  On Thu, Jan 29, 2015 at 7:10 PM, Dave Brondsema d...@brondsema.net
 wrote:
 
  Hi,
 
  What versions did you upgrade?  Was it released versions like 1.1.0 and
  1.2.0?
  Or were you using a git revision?
 
  The image didn't come through (I think this list doesn't allow
  attachments).
  Could you try uploading it somewhere (e.g. imgur) and sending the link?
 
  Also wondering what browser you are using and if it works in any other
  browser.
 
  -Dave
 
  On 1/29/15 10:54 AM, mosbah abdelkader wrote:
  Hello all,
 
 
  First, I would like to thank you for this great piece of software.
 
 
  Since last update (done this week), I get some issues on the web
  interface of
  allura. Especially some icons are replaced by letters as shown on the
  attached
  picture.
 
 
  Has anyone any idea about fixing that.
 
 
  Thank you.Inline image 1
 
 
 
  --
  Dave Brondsema : d...@brondsema.net
  http://www.brondsema.net : personal
  http://www.splike.com : programming

 
 



 --
 Dave Brondsema : d...@brondsema.net
 http://www.brondsema.net : personal
 http://www.splike.com : programming