Skip to content

Commit

Permalink
fixup! remove menu_links and admin_views and add limit and offset to …
Browse files Browse the repository at this point in the history
…endpoint
  • Loading branch information
ephraimbuddy committed Feb 26, 2021
1 parent 7fb7053 commit a98b3ae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions airflow/api_connexion/schemas/plugin_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ class PluginSchema(Schema):
hooks = fields.List(fields.String())
executors = fields.List(fields.String())
macros = fields.List(fields.String())
admin_views = fields.List(fields.String())
flask_blueprints = fields.List(fields.String())
menu_links = fields.List(fields.String())
appbuilder_views = fields.List(fields.String())
appbuilder_menu_items = fields.List(fields.Dict())
global_operator_extra_links = fields.List(fields.String())
Expand Down
6 changes: 0 additions & 6 deletions tests/api_connexion/schemas/test_plugin_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@ class TestPluginSchema(TestPluginBase):
def test_serialize(self):
deserialized_plugin = plugin_schema.dump(self.mock_plugin)
assert deserialized_plugin == {
'admin_views': [],
'appbuilder_menu_items': [],
'appbuilder_views': [],
'executors': [],
'flask_blueprints': [],
'global_operator_extra_links': [],
'hooks': [],
'macros': [],
'menu_links': [],
'operator_extra_links': [],
'source': None,
'name': 'test_plugin',
Expand All @@ -61,29 +59,25 @@ def test_serialize(self):
assert deserialized == {
'plugins': [
{
'admin_views': [],
'appbuilder_menu_items': [],
'appbuilder_views': [],
'executors': [],
'flask_blueprints': [],
'global_operator_extra_links': [],
'hooks': [],
'macros': [],
'menu_links': [],
'operator_extra_links': [],
'source': None,
'name': 'test_plugin',
},
{
'admin_views': [],
'appbuilder_menu_items': [],
'appbuilder_views': [],
'executors': [],
'flask_blueprints': [],
'global_operator_extra_links': [],
'hooks': [],
'macros': [],
'menu_links': [],
'operator_extra_links': [],
'source': None,
'name': 'test_plugin_2',
Expand Down

0 comments on commit a98b3ae

Please sign in to comment.