-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove token thresholds from server (#6105)
* remove client side gating flag + topic threshold logic * remove token balance property + methods from client Account model * remove more token threshold logic from client * remove env var from webpack * remove ITokenAdapter * removed banner * removed NftAdapter * remove token adapters * remove .only in API tests * eslint fixes * `Topics.token_threshold` removal migration * remove `/bulkBalances` * remove `/tokenBalance` * remove `/tokenBalance` - external API * remove test + types * remove token_balance requirement in created_topics to fix topic creation * remove unused error * remove validateTopicThreshold * fix unit tests * remove token_threshold from sequelize model + delete `/setTopicThreshold` * remove setTopicThreshold mutation * reorder migration * add gating flag to unit tests * integration test fix * fix unit test * fix sublayout banner * invert flag check * fix unit tests
- Loading branch information
1 parent
451890f
commit 4f8f902
Showing
22 changed files
with
162 additions
and
621 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
packages/commonwealth/server/migrations/20231215165406-remove-topic-threshold.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
up: async (queryInterface, Sequelize) => { | ||
await queryInterface.removeColumn('Topics', 'token_threshold'); | ||
}, | ||
|
||
down: async (queryInterface, Sequelize) => { | ||
// data loss occurs | ||
await queryInterface.addColumn( | ||
'Topics', | ||
'token_threshold', | ||
{ | ||
type: Sequelize.STRING, | ||
allowNull: true, | ||
defaultValue: '0', | ||
}, | ||
{ transaction: t }, | ||
); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.