Commit Graph

306 Commits

Author SHA1 Message Date
Daniel Ternyak 495b50a9e9
Misc Fixes (#381)
* Fix Logging typo

* only allow consecutive milestone date estimates

* fix typo

* handle empty target

* validate max proposal brief size
2019-03-14 23:24:10 -05:00
AMStrix c41d74c0fa String replacement for block explorer URL (#384)
use string replace to build block explorer url
2019-03-15 00:16:38 -04:00
Daniel Ternyak 1ad359eddd
Delete LICENSE 2019-03-14 23:10:43 -05:00
AMStrix 1d07997a7a Moar bugs (#379)
* #376 fix milestone passed to milestone_paid email

* #374 fix admin contribution PUT/POST status validation

* #373 fix updates & contributors tabs of Proposal
2019-03-14 22:26:28 -05:00
William O'Beirne 0e979dc77c Repeat bootstrap attempts (#380)
* Repeatedly attempt to bootstrap watcher until it happens.

* Get rid of first request bootstrap, watcher polls now.
2019-03-14 22:21:28 -05:00
AMStrix ad844263dd Several bugs (#378)
* #375 admin long lines in proposal Detail card

* #371 comment_reply & proposal_comment email url typo

* #367 fix link to RFP from Proposal create, just use id

* #368 profile avatar removal, allow_none on /user PUT
2019-03-14 20:55:13 -05:00
Daniel Ternyak d2e8acd704
Fix Logging typo (#377) 2019-03-14 20:51:51 -05:00
Daniel Ternyak 9b542ab1f1
More webargs validation (#344) 2019-03-14 15:29:02 -05:00
Daniel Ternyak ff3d048083
Consolidate migrations (#363) 2019-03-14 15:07:32 -05:00
AMStrix 46aa7cf6cf Limit Contribution Related Emails (#360)
* BE: limit contribution emails to CONFIRMED & one per user + add app context to EmailSender

* BE: handle EmailSender setup and start using flask request context
2019-03-14 12:46:09 -04:00
William O'Beirne a91269f605 Replace email logo (#357) 2019-03-14 00:05:02 -05:00
William O'Beirne 9d0591918e Require refund address or confirm donation (#354)
* Add API check to disallow unsetting refund address.

* Require either refund address to be set or explicit consent for a donation. Dont have them show up as refundable in admin.

* Show donations on financials page

* Continue after entry

* Consider no_refund when checking for duplicate contribution.

* Fix types.

* Add a filter for all contributions that are considered donations. Update financial query to include donations.

* Elaborate in message.
2019-03-13 18:36:24 -05:00
AMStrix e018f11018 Zcash e2e basics (#329)
* e2e: remove more eth related stuff, update cypress

* BE: e2e endpoints and interceptions for emails and blockchain reqs

* e2e: expand browse test for proposals and comments

* e2e: remove old tests, add new ones

* e2e: intercept blockchain_get /contribution/addresses

* be: disable sentry for e2e, add DEBUG to e2e endpoint register conditional

* post-merge adjustments

* fix merge related bug

* post merge issue
2019-03-13 18:36:06 -05:00
AMStrix a043c2dfa6 XSS and Reduced Markdown for Admin (#355) 2019-03-13 18:35:22 -05:00
AMStrix 1ae519e251 Address TODOs (#349)
* todos: simple ones, removals & modifications to NOTE

* rem-todo: reduced markdown images are removed by sanitizer

* be todo: add user validation to create

* be todo: improve test_invide_api tests

* be todo: remove todo comment

* fe todo: set error messages on reducers

* fe todo: upgrade and enable react-helmet

* todos - remove uneeded

* fe todos: remove unecessary

* be: fix remaining staking contribution calculation
2019-03-13 16:39:50 -05:00
Aaron 0f055d6b39
Merge branch 'develop' into batch-emails
# Conflicts:
#	backend/grant/email/send.py
2019-03-13 15:11:54 -05:00
William O'Beirne 0b3bf5e66f Update email from & name (#348) 2019-03-13 14:41:30 -05:00
William O'Beirne 3050caf329 Sentry fixes (#345)
* Upgrade sentry sdk, replace all prints with flask logging.

* Upgrade node sentry to fix circular json error.

* Update frontend sentry versions to maintain parity and nab any fixes.
2019-03-13 14:40:29 -05:00
William O'Beirne badb9fc23d
Merge branch 'develop' into batch-emails 2019-03-13 13:59:38 -04:00
William O'Beirne 73d087bda7 Rate limits (#342)
* Implemented rate limits for most POST requests.

* Nicer error message for rate limited contributions

* Use error message for drafts and invites, limit invites on frontend.
2019-03-12 22:35:38 -05:00
Aaron eb4767d4cc
Merge branch 'develop' into batch-emails
# Conflicts:
#	backend/grant/proposal/models.py
2019-03-12 20:14:51 -05:00
Aaron d1e2545b49
be: EmailSender Thread for pushing emails sends off the response thread 2019-03-12 20:12:07 -05:00
William O'Beirne e160380daa Prevent showing contribution instructions for canceled / expired proposals (#334) 2019-03-12 16:35:15 -05:00
William O'Beirne c6ad668d71 Better contribution error displays (#314)
* Handle blockchain_get failures better.

* tsc
2019-03-12 13:10:56 -04:00
AMStrix c291d41d4e Admin financials (#310)
* admin: financials basics

* BE: allow missing emailSettings on user settings EP

* admin: add webpack import loader for ant-design-pro (for styles loading)

* BE: admin financials reporting

* admin: financials page

* admin financials - convert contribution and payout total summations to sql

* Handle some kinda failure case.

* admin: remove "accounting" card from financials
2019-03-12 13:08:16 -04:00
Daniel Ternyak 7235c15862
Merge branch 'develop' into expired-notif 2019-03-11 13:02:01 -04:00
AMStrix a271724266 BE: add SESSION_COOKIE_DOMAIN setting (#311) 2019-03-07 15:04:40 -05:00
William O'Beirne 9c127648c5
Merge branch 'develop' into expired-notif 2019-03-06 17:37:17 -05:00
Will O'Beirne a9ae245578
Dont add task for anon contributions 2019-03-06 16:39:30 -05:00
Will O'Beirne 1973db1330
Notify user if contribution expires. 2019-03-06 15:33:09 -05:00
AMStrix 1d2228a394 Flexible Matching/Bounties + KYC (#277)
* BE: proposal rfp opt in & proposal bounty

* admin: proposal rfp opt in display & modify bounty

* FE: proposal rfp opt in / proposal.contributionBounty

* fix github merge (so close)

* add status field to update_rfp

* handle only showing canel and refund popover correctly

* undo unneeded change

* BE: make sure rfp.bounty is None when it is set to '0' or null during create/update
2019-03-06 14:25:58 -06:00
Will O'Beirne 6b1a856145
Revert contribution ids to be incremental. 2019-03-06 11:16:28 -05:00
Daniel Ternyak 33a19689ca
Merge branch 'develop' into canceled-failed-fix 2019-03-05 10:43:42 -06:00
Daniel Ternyak bc095a7c3e
Merge branch 'develop' into reduce-bootstrap-payload 2019-03-05 10:34:34 -06:00
Daniel Ternyak e5426d8975
Merge branch 'develop' into random-ids 2019-03-04 19:23:43 -06:00
Will O'Beirne 400774c4d3
Remove unused endpoint / test, fix another test. 2019-03-04 17:20:47 -05:00
Will O'Beirne ae625cb3e1
Generate random ID for public facing entities. 2019-03-04 16:47:52 -05:00
Will O'Beirne 4779299fb3
Reduce payload size for bootstrap. Fix invalid response to bootstrap. Bootstrap height now starts at N - min confs. 2019-03-04 14:40:37 -05:00
Will O'Beirne 89da528c4a
Dont move to failed if it was canceled. 2019-03-04 14:24:13 -05:00
Will O'Beirne 58ee787ab8
Remove print. 2019-03-04 13:56:57 -05:00
Will O'Beirne 2cc5ade673
Sort homepage rfps by bounty. Fix admin views and some bounty logic. 2019-03-04 13:52:57 -05:00
Daniel Ternyak 3e65df3e5d
Merge branch 'develop' into various-fixes 2019-03-01 14:13:41 -06:00
Daniel Ternyak f950e17397
Webargs Request Parsing (#228) 2019-03-01 14:11:03 -06:00
Daniel Ternyak f5d721c0b4
Update template.txt 2019-03-01 11:23:13 -06:00
Daniel Ternyak a52fda5c58
Set Admin Command (#273) 2019-02-28 18:26:38 -06:00
Daniel Ternyak 56b63eda6c
Merge branch 'various-fixes' of https://github.com/dternyak/zcash-grant-system into various-fixes 2019-02-27 21:44:09 -06:00
Daniel Ternyak a3d1cbf427
replace fake address with real address 2019-02-27 21:28:12 -06:00
Daniel Ternyak 6aa6ea5624
Merge branch 'develop' into various-fixes 2019-02-27 17:15:12 -06:00
Daniel Ternyak 85ba0d7348
ensure comments are not greater than 1000 chars 2019-02-27 17:05:01 -06:00
Will O'Beirne 8a193756b3
Fix unsafe behavior in marshmallow class for contributions. 2019-02-25 15:04:33 -05:00