Skip to content

Commit

Permalink
Set Bucket Quota on Creation (#308)
Browse files Browse the repository at this point in the history
Introces the capability to set bucket quota on bucket creation and adds the API to set the bucket on it's own
  • Loading branch information
dvaldivia committed Oct 2, 2020
1 parent fcf5d5c commit 28eb878
Show file tree
Hide file tree
Showing 30 changed files with 2,490 additions and 447 deletions.
25 changes: 25 additions & 0 deletions models/make_bucket_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

137 changes: 137 additions & 0 deletions models/set_bucket_quota.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions package-lock.json

This file was deleted.

219 changes: 121 additions & 98 deletions portal-ui/bindata_assetfs.go

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions portal-ui/config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const rewireReactHotLoader = require('react-app-rewire-hot-loader');

/* config-overrides.js */
module.exports = function override(config, env) {
if (env === 'development') {
config.resolve.alias['react-dom'] = '@hot-loader/react-dom';
}
config = rewireReactHotLoader(config, env);
return config;
};
8 changes: 7 additions & 1 deletion portal-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"dependencies": {
"@babel/helper-create-regexp-features-plugin": "^7.7.4",
"@babel/plugin-transform-react-jsx-development": "^7.9.0",
"@hot-loader/react-dom": "^16.9.0",
"@material-ui/core": "^4.9.12",
"@material-ui/icons": "^4.9.1",
"@types/history": "^4.7.3",
Expand All @@ -29,9 +30,13 @@
"moment": "^2.24.0",
"npm": "^6.14.4",
"react": "^16.13.1",
"react-app-rewire-hot-loader": "^2.0.1",
"react-app-rewired": "^2.1.6",
"react-async-hook": "^3.6.1",
"react-chartjs-2": "^2.9.0",
"react-codemirror2": "^7.1.0",
"react-dom": "^16.12.0",
"react-hot-loader": "^4.13.0",
"react-moment": "^0.9.7",
"react-redux": "^7.1.3",
"react-router-dom": "^5.1.2",
Expand All @@ -42,10 +47,11 @@
"superagent": "^5.1.0",
"typeface-roboto": "^0.0.75",
"typescript": "3.6.4",
"use-debounce": "^5.0.1",
"websocket": "^1.0.31"
},
"scripts": {
"start": "PORT=5000 react-scripts start",
"start": "PORT=5000 react-app-rewired start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
Expand Down
3 changes: 2 additions & 1 deletion portal-ui/src/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { connect } from "react-redux";
import { AppState } from "./store";
import { userLoggedIn } from "./actions";
import LoginCallback from "./screens/LoginPage/LoginCallback";
import { hot } from "react-hot-loader/root";

const isLoggedIn = () => {
return (
Expand Down Expand Up @@ -75,4 +76,4 @@ class Routes extends React.Component<RoutesProps> {
}
}

export default connector(Routes);
export default hot(connector(Routes));

0 comments on commit 28eb878

Please sign in to comment.