msyavuz commented on code in PR #38360:
URL: https://github.com/apache/superset/pull/38360#discussion_r2877238680
##########
docs/developer_docs/extensions/development.md:
##########
@@ -100,15 +100,36 @@ The `extension.json` file contains the metadata necessary
for the host applicati
"displayName": "Dataset References",
"version": "1.0.0",
"license": "Apache-2.0",
- "backend": {
- "entryPoints": ["superset_extensions.dataset_references.entrypoint"],
- "files": ["backend/src/superset_extensions/dataset_references/**/*.py"]
- },
"permissions": []
}
```
-The `backend` section specifies Python entry points to load eagerly when the
extension starts, and glob patterns for source files to include in the bundle.
+### Convention-Based Entry Points
+
+Extensions use standardized entry point locations:
+
+- **Backend**:
`backend/src/superset_extensions/{publisher}/{name}/entrypoint.py`
Review Comment:
This structure would be a bit weird when working on an extension, each
extension would have `backend/src/superset_extensions` directory right? Having
this superset_extensions directory inside an extension seems wrong to me. Is my
understanding flawed here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]