-
Notifications
You must be signed in to change notification settings - Fork 6
Match delete metadata in the frontend #19 #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lmarini
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting a server side error. Could be due to merging the latest main in this branch.
Traceback (most recent call last):
File "/Users/lmarini/.local/share/virtualenvs/backend-ec4B1j-S/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 366, in run_asgi
result = await app(self.scope, self.receive, self.send)
File "/Users/lmarini/.local/share/virtualenvs/backend-ec4B1j-S/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in call
return await self.app(scope, receive, send)
File "/Users/lmarini/.local/share/virtualenvs/backend-ec4B1j-S/lib/python3.9/site-packages/fastapi/applications.py", line 261, in call
await super().call(scope, receive, send)
File "/Users/lmarini/.local/share/virtualenvs/backend-ec4B1j-S/lib/python3.9/site-packages/starlette/applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "/Users/lmarini/.local/share/virtualenvs/backend-ec4B1j-S/lib/python3.9/site-packages/starlette/middleware/errors.py", line 181, in call
raise exc
File "/Users/lmarini/.local/share/virtualenvs/backend-ec4B1j-S/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in call
await self.app(scope, receive, _send)
File "/Users/lmarini/.local/share/virtualenvs/backend-ec4B1j-S/lib/python3.9/site-packages/starlette/middleware/cors.py", line 92, in call
await self.simple_response(scope, receive, send, request_headers=headers)
File "/Users/lmarini/.local/share/virtualenvs/backend-ec4B1j-S/lib/python3.9/site-packages/starlette/middleware/cors.py", line 147, in simple_response
await self.app(scope, receive, send)
File "/Users/lmarini/.local/share/virtualenvs/backend-ec4B1j-S/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in call
raise exc
File "/Users/lmarini/.local/share/virtualenvs/backend-ec4B1j-S/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in call
await self.app(scope, receive, sender)
File "/Users/lmarini/.local/share/virtualenvs/backend-ec4B1j-S/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in call
raise e
File "/Users/lmarini/.local/share/virtualenvs/backend-ec4B1j-S/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "/Users/lmarini/.local/share/virtualenvs/backend-ec4B1j-S/lib/python3.9/site-packages/starlette/routing.py", line 656, in call
await route.handle(scope, receive, send)
File "/Users/lmarini/.local/share/virtualenvs/backend-ec4B1j-S/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle
await self.app(scope, receive, send)
File "/Users/lmarini/.local/share/virtualenvs/backend-ec4B1j-S/lib/python3.9/site-packages/starlette/routing.py", line 61, in app
response = await func(request)
File "/Users/lmarini/.local/share/virtualenvs/backend-ec4B1j-S/lib/python3.9/site-packages/fastapi/routing.py", line 227, in app
raw_response = await run_endpoint_function(
File "/Users/lmarini/.local/share/virtualenvs/backend-ec4B1j-S/lib/python3.9/site-packages/fastapi/routing.py", line 160, in run_endpoint_function
return await dependant.call(**values)
File "/Users/lmarini/code/clowder2/backend/app/routers/metadata_files.py", line 390, in delete_file_metadata
) is not None:
File "/Users/lmarini/.local/share/virtualenvs/backend-ec4B1j-S/lib/python3.9/site-packages/motor/core.py", line 771, in call
raise TypeError(
TypeError: MotorCollection object is not callable. If you meant to call the 'metadata.remove' method on a MotorCollection object it is failing because no such method exists.
This PR implements both delete dataset metadata as well as delete file metadata.
I also fix the "disabled" style for Select as well as the DateTime