Commit Graph

296 Commits

Author SHA1 Message Date
Will O'Beirne c462b6eb72
Give CORS setting its own env var 2019-04-04 21:32:20 -04:00
Daniel Ternyak 35510b984f
Misc fixes (#418)
* CORS

* Parse float instead of bn

* Minimum to 0.001

* Unused import
2019-04-04 19:16:00 -05:00
William O'Beirne 339705207a
Default target to '0' (#413)
* Default proposal target to zero instead of None

* Add frontend validation and 1 ZEC minimum
2019-03-28 13:25:34 -04:00
William O'Beirne edd2260423
Update RFP copy + fix admin bug (#414)
* Update RFP copy and use dangerous html to get a link working. Also fix an RFP create bug.

* Capitalize
2019-03-28 13:13:12 -04:00
Daniel Ternyak ece0648015
Merge branch 'develop' into bitgo 2019-03-21 12:46:17 -05:00
Will O'Beirne d4715695ad
Initial work on BitGo integration. Functions as expected. 2019-03-19 15:56:58 -04:00
Will O'Beirne 06ae67f1db
Flask command for clearing chain dependent db state 2019-03-19 15:14:49 -04:00
Will O'Beirne 9fad92944e
Merge branch 'better-validation' of github.com:dternyak/zcash-grant-system into better-validation 2019-03-19 13:02:34 -04:00
Will O'Beirne d07c01a4bd
Fix proposal model functions, tests pass. 2019-03-19 13:01:11 -04:00
Daniel Ternyak a4a80bfe4c
Merge branch 'develop' into better-validation 2019-03-18 16:00:06 -05:00
Will O'Beirne 5deeea6506
More truncation 2019-03-18 15:11:24 -04:00
Will O'Beirne 53f6a186ee
More safety validation 2019-03-18 15:03:01 -04:00
Will O'Beirne 4511a1d6e8
Adjust merged in milestone validation 2019-03-18 14:53:15 -04:00
Will O'Beirne 824ba30fa5
Merge branch 'mixmasala-fix_negative_payout' into better-validation 2019-03-18 14:48:14 -04:00
Will O'Beirne adc2fd4d63
Stricter validation, truncate before db entry, env var proposal target limit 2019-03-18 14:35:08 -04:00
Will O'Beirne b0c6614a64
Dont allow inviting members already on the team (including yourself.) 2019-03-18 12:51:46 -04:00
Masala 7703d274bd raise ValidationException on invalid payout percent 2019-03-15 19:19:03 -04:00
Masala db05d2b86f no negative payouts 2019-03-15 18:14:17 -04:00
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
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
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
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