Skip to content

Update init.sql to include new notebooks and directories, and update … #281

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docker/postgres/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ GRANT ALL PRIVILEGES ON SEQUENCE notebook_spark_apps_id_seq TO server;
-- Add some initial data
INSERT INTO notebooks (name, path) VALUES ('demo.ipynb', 'work/demo.ipynb');
INSERT INTO notebooks (name, path) VALUES ('notebook.ipynb', 'work/notebook.ipynb');
INSERT INTO notebooks (name, path) VALUES ('quickstart.ipynb', 'work/quickstart.ipynb');
INSERT INTO notebooks (name, path) VALUES ('sg-resale-flat-prices.ipynb', 'work/sg-resale-flat-prices/sg-resale-flat-prices.ipynb');

INSERT INTO directories (name, path) VALUES ('work', '/work');
INSERT INTO directories (name, path) VALUES ('word-count', '/work/word-count');
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/components/notebook/content/Runs.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function Runs({
};

fetchSparkApps();
}, [contentType]);
}, [contentType, notebook]);

return (
<Box sx={{
Expand Down Expand Up @@ -55,7 +55,7 @@ function Runs({
))}
</List>
)
: ('Loading...')}
: ('No Spark Applications associated with this notebook.')}
</CardContent>
</Card>
</Box>
Expand Down
Loading