Commit Graph

1207 Commits

Author SHA1 Message Date
Teemu Patja f2c74fe4e7
Fix crash in case webhook with nil url exists for a repo 2017-03-06 15:11:54 +02:00
Teemu Patja bb9ae35fd5
Log proper stack trace in case toggling repo throws 2017-03-06 14:25:26 +02:00
Teemu Patja e6def5b3f8
Fix crash when receiving a webhook POST for unknown repo 2017-03-06 14:07:19 +02:00
Teemu Patja 317247e31a
Merge branch 'develop' 2017-03-06 12:56:01 +02:00
Teemu Patja b69a6f5728
Scheduler logging fix & fix 500 error for unexpected webhook
* log exception in case scheduled task fails
* return 403 response in case validating webhook POST secret fails
* add logging
2017-03-06 12:55:39 +02:00
Teemu Patja f8e7677c9e
Make swagger-ui available only for dev profile 2017-03-04 13:01:32 +02:00
Teemu Patja 1107ed71e7
Fix REPL reload issues with db and http-server 2017-03-04 12:42:12 +02:00
Teemu Patja 22d1fcc517
New scheduler implementation
* simpler and more REPL-friendly scheduler implementation
2017-03-03 23:24:31 +02:00
Teemu Patja 5cdc524c1b
Fix bug in pull request webhook handler 2017-03-03 21:37:12 +02:00
Teemu Patja 366b0f6a7a
Simplify QR image get handler 2017-03-03 17:02:58 +02:00
Teemu Patja 331b227f5e
Fix problem in db migration 2017-03-03 16:44:59 +02:00
Teemu Patja 716856830b
Github comment image related fixes and improvements
* fix crash with QR image GET request for non-existing image/bounty
* take comment hash verifcation back to use
* improve QR handler error handling
* add missing parameter to function call
2017-03-03 16:27:47 +02:00
Teemu Patja 442f5c7821
Require Ethereum address for toggling repos
* do not allow toggling of repositories without a saved Ethereum
  address (Fixes: #20)
* fix react warning on activity view
* fix bugs in payout related re-frame handlers
* project file tweaks
2017-03-03 10:19:28 +02:00
Teemu Patja 9f010648aa
Error handling improvements, #22 fix & more
Error handling improvements
* show error message on UI in case repo toggling fails
* eliminate possibility of creating multiple webhooks

Store comment PNG for all balances of a bounty (Fixes: #22)
* include balance in computation of verification hash for image request
* store hash in db

Refactoring
* use 'owner' for a repo owner everywhere instead of 'login'

Minor
* move cider dependencies to top-level in project file to avoid errors
  with tests and migratus
2017-03-02 10:51:18 +02:00
Teemu Patja 51ccf7ce34
Fixed bug related to org owned repos
* store org name as owner instead of logged in user when toggling a
  repo
2017-03-01 15:54:29 +02:00
Teemu Patja f125bd6244
Fix issue URL in activity feed 2017-03-01 10:35:16 +02:00
Teemu Patja 07b61ee9c8
Add content-type to json-rpc post to make parity happy 2017-02-28 20:22:13 +02:00
Teemu Patja 6e108a088d
Make uberjar nrepl emacs friendly
* replace luminus nrepl with cider nrepl
+ minor cleanup
2017-02-28 14:03:33 +02:00
Teemu Patja 211cc96c90
Activity feed + UI tweaks
* finish missing parts of activity feed feature
* render time ago labels with moment.js
* css tweaks
2017-02-27 22:38:41 +02:00
Teemu Patja 2599b85d41
WIP: Activity feed feature
* backend support for activity feed
* partial frontend support (still needs work)
* save issue modification timestamp to db
* rename commit-id -> commit-sha everywhere for consistency
* "No data" texts for UI collections when no data exists
2017-02-26 23:43:57 +02:00
Teemu Patja c33fb858f9
"Top Hunters" feature + more
* frontend + backend support for top hunters
* fix issues with bounties view
* logging
* cleanup
2017-02-26 16:14:39 +02:00
Teemu Patja 9149a5a985
Store bounty balances as decimal instead of 0x string 2017-02-25 14:44:29 +02:00
Teemu Patja 9cb48b5183
Bounties view + related backend functionality & more
Changes to bounty/pull-request data model and logic
* save git sha of pull request's HEAD instead of possible merge commit
  and save it for opened, merged and closed events
* only look for bounties being accepted in pull-request closed via
  merge events (no need for compilicated logic with issue-closed event)
* pull_request now has issue_id column to make many sql queries
  simpler

Frontend
* owner-bounties app-db structure changes
* bounties view with confirm pending payout UI

Other
* removed lots of unused legacy code
* bug fixes + refactoring
* added comments + TODOs
2017-02-25 00:15:44 +02:00
Teemu Patja ec5f07a578
DB query refactoring, save PRs also when opened
* store pull-requests to DB also when opened instead of only when
  merged to allow for showing bounty claims
* refactor SQL queries
* look for PR keywords also in title
* improve PR keyword regexes
2017-02-24 11:05:13 +02:00
Teemu Patja 1ad6fb3b93
Inline logo svg, remove old svg's 2017-02-23 18:52:14 +02:00
Teemu Patja 9cb1028c16
Debug logging 2017-02-23 13:48:11 +02:00
Teemu Patja b112155134
Add debug logging, add forgotten column constraint 2017-02-23 13:23:20 +02:00
Teemu Patja 2d2d11fc9d
Fix issues with injected web3 and advanced cljs compilation
* use stub js for web3 externs
* upgrade clojurescript

Fixes: #21
2017-02-23 12:26:29 +02:00
Teemu Patja 66a65277ae
Remove broken + unneeded /docs route 2017-02-22 22:54:48 +02:00
Teemu Patja 0b69459638
Do not checksum validate address by default
* make checksum validation optional in valid-address?
* update test
2017-02-22 21:51:47 +02:00
Teemu Patja 6bc3ca8937
Define goog.DEBUG false for uberjar to avoid showing re-frisk in prod 2017-02-22 21:15:39 +02:00
Teemu Patja b868996308
Do not expose user's email addresses to client side, rename parameter 2017-02-22 19:46:11 +02:00
Teemu Patja c2065fa973
Improve repo loading error handling + UI tweaks 2017-02-22 11:57:38 +02:00
Teemu Patja 1d49767da9
Repositories view improvements
* show personal repos group before other groups
* CSS tweaks
2017-02-22 11:31:38 +02:00
Teemu Patja 32392a4405
Fix bug caused by stale session
* in case API AJAX calls start failing, make sure user is logged out
  to avoid frontend being in a corrupt state
2017-02-22 10:56:14 +02:00
Teemu Patja f932b3705d
Do not leak Github API access token to client side 2017-02-22 10:47:53 +02:00
Teemu Patja 89475a9365
Close success flash messages via delayed dispatch 2017-02-21 23:00:53 +02:00
Teemu Patja 4e627be1e0
UX improvements + address validation
* error/success flash notification support
* disable spellcheck for address editbox
* validate user's Ethereum address when saving
* update button state styles
2017-02-21 21:43:35 +02:00
Teemu Patja 1663669163
Ethereum address validation + unit test
* utility function for validate Ethereum addresses
* unit test
2017-02-21 21:41:39 +02:00
Teemu Patja d5ebf3b0bc
Fix glitch with responsive grid 2017-02-21 15:05:28 +02:00
Teemu Patja f383ab9a0d
Fix build errors + problem with webhook routes
* remove unnecessary servlet context middleware
* do not apply unnecessary ring middleware to webhook routes
2017-02-21 14:55:40 +02:00
Teemu Patja 9b972625e0
Rewrite Github comment PNG functionality
* removed old swing JEditorPane based html to png rendering due to
  it's lack of support for modern css
* new implementation uses wkhtmltoimage (on prod server via wrapper
  script using xvfb)
* no longer generating image on every GET request for QR, but rather
  generating image when a bounty is cretaed or contract balance
  changes
* images stored to DB
* comment image design updated according to UI spec
2017-02-21 10:49:25 +02:00
Teemu Patja bb5d492631
Activity feed view
* beginnings of activity feed reagent UI
* uses place holder data for now
* CSS + other UI tweaks
2017-02-20 17:03:01 +02:00
Teemu Patja b8facb1a97
"Top hunters" UI
* front end support for "top hunters"
* placeholder data used for now
2017-02-19 19:52:22 +02:00
Teemu Patja 7ce1dc6cdc
Fix bug in handle-issue-labeled + logging 2017-02-19 14:33:02 +02:00
Teemu Patja 0fef7d931d
Add forgotten file 2017-02-19 14:32:13 +02:00
Teemu Patja 416178cf0a
Guard against invalid QR code requests 2017-02-19 11:01:02 +02:00
Teemu Patja d503c84928
Add sablono as dev dependency to avoid error
* reloading clj code in REPL does not work without sablono as a
  dependency (devcards issue)
2017-02-19 10:47:16 +02:00
Teemu Patja 97c7800e4d
CSS tweaks 2017-02-18 23:36:29 +02:00
Teemu Patja e265e967e2
Fix regression + UI tweaks 2017-02-18 22:46:59 +02:00