File tree Expand file tree Collapse file tree 5 files changed +212
-51
lines changed Expand file tree Collapse file tree 5 files changed +212
-51
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3- Please use [ this] ( https://docs.gitlab.com/ee/development/changelog.html ) document as guidelines to keep a changelog.
4-
53## [ unreleased]
64
75### Added
@@ -18,6 +16,7 @@ Please use [this](https://docs.gitlab.com/ee/development/changelog.html) documen
1816
1917* config: Removed dummy ` advanced.oneshot ` flag.
2018* cli: Removed ` docker init ` command.
19+ * cli: Removed dummy ` schema approve --hashes ` flag.
2120
2221## 5.0.0-rc2 - 2022-03-13
2322
Original file line number Diff line number Diff line change 1+ # DipDup contribution guide
2+
3+ ## Codestyle
4+
5+ ## Releases
6+
7+ ## Documentation
8+
9+ * All changes that affect user experience MUST be documented in CHANGELOG.md file.
10+ * Changelog formatting SHOULD stick to GitLab changelog [ guidelines] ( https://docs.gitlab.com/ee/development/changelog.html ) .
Original file line number Diff line number Diff line change 1+ import importlib
2+
3+ config_module = importlib .import_module ('dipdup.config' )
4+ for name , member in config_module .__dict__ .items ():
5+ if not name .endswith ('Config' ):
6+ continue
7+ if isinstance (member , type ):
8+ doc = member .__doc__
9+ if not doc :
10+ continue
11+
12+ print ()
13+ print (f'=> { name } ' )
14+ print ()
15+ print ('| field | description |' )
16+ print ('| - | - |' )
17+ for line in doc .split ('\n ' ):
18+ line = line .strip ()
19+ if line .startswith (':param' ):
20+ parts = line .split (':' )
21+ param , desc = parts [1 ], parts [2 ].strip ()
22+ print (f'| `{ param [6 :]} ` | { desc } |' )
Original file line number Diff line number Diff line change 55import signal
66import subprocess
77import sys
8- import warnings
98from contextlib import AsyncExitStack
109from contextlib import suppress
1110from dataclasses import dataclass
@@ -320,13 +319,9 @@ async def schema(ctx):
320319
321320
322321@schema .command (name = 'approve' , help = 'Continue to use existing schema after reindexing was triggered' )
323- @click .option ('--hashes' , is_flag = True , help = 'Recalculate all schema and config hashes' )
324322@click .pass_context
325323@cli_wrapper
326- async def schema_approve (ctx , hashes : bool ):
327- if hashes :
328- warnings .warn ('`--hashes` option is deprecated and has no effect' , DeprecationWarning )
329-
324+ async def schema_approve (ctx ):
330325 config : DipDupConfig = ctx .obj .config
331326 url = config .database .connection_string
332327 models = f'{ config .package } .models'
You can’t perform that action at this time.
0 commit comments