Skip to content

Commit f899dee

Browse files
authored
Merge pull request #86 from oslabs-beta/dev2
Creating a dev2 branch. dbSpy 3.0
2 parents 151e520 + eb6b496 commit f899dee

File tree

119 files changed

+18075
-13391
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+18075
-13391
lines changed

.eslintrc.json

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
11
{
22
"root": true,
33
"ignorePatterns": ["**/test", "**/__tests__"],
4+
"parser": "@typescript-eslint/parser",
45
"env": {
56
"node": true,
67
"browser": true,
78
"es2021": true
89
},
9-
// "plugins": ["react", "prettier"],
10-
"extends": ["eslint:recommended", "plugin:react/recommended"],
11-
// "extends": ["airbnb", "prettier", "eslint:recommended", "plugin:react/recommended"],
10+
"extends": [
11+
"eslint:recommended",
12+
"plugin:react/recommended",
13+
"plugin:import/errors",
14+
"plugin:import/warnings",
15+
"plugin:import/typescript",
16+
"plugin:n/recommended",
17+
"promise",
18+
"plugin: @typescript-eslint/recommended",
19+
"airbnb",
20+
"airbnb-typescript",
21+
"prettier"
22+
],
23+
"overrides": [],
1224
"parserOptions": {
25+
"ecmaVersion": "latest",
1326
"sourceType": "module",
14-
"ecmaFeatures": {
15-
"jsx": true
16-
}
27+
"project": "./tsconfig.json",
28+
"plugins": ["tailwindcss"]
1729
},
1830
"rules": {
1931
"prettier/prettier": "error",
@@ -33,4 +45,3 @@
3345
"react": { "version": "detect"}
3446
}
3547
}
36-

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# General
22
.DS_Store
3-
3+
.vscode/
44
# dependencies
55
node_modules/
66
server/db_schemas
@@ -11,7 +11,6 @@ dist/
1111
# package-lock
1212
package-lock.json
1313

14-
<<<<<<< HEAD
1514
#EBStalk
1615
.elasticbeanstalk/
1716

@@ -20,6 +19,3 @@ package-lock.json
2019
.elasticbeanstalk/*
2120
!.elasticbeanstalk/*.cfg.yml
2221
!.elasticbeanstalk/*.global.yml
23-
=======
24-
.env
25-
>>>>>>> 342d51b7256a6ae08cc11165302b8bca3999415a

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"singleQuote": true
2+
"singleQuote": true,
3+
"printWidth": 90
34
}

Contributors.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
### How to contribute
2+
3+
Below is a list of features and improvements to which you can contribute. If you have any additional ideas, please raise an issue or implement them as well!
4+
5+
- Exporting executable SQL query with every modification to your schema
6+
- After modifying/editing the database schemas, users should be able to generate executable queries isolated from their database which decreases security concerns. Users should be able to append all the query changes at the end of the new file and save this in their local machines. The codebase for query generation is in place, however not yet implemented into the current state management and front-end rendering.
7+
- Logging modeling
8+
- After connnection to the database is made the user should be able to view, modify and save the current log settings. This will assist database administrators in keeping efficient log setup in mind during the early stages of DB modeling. The codebase is in place however not yet implemented into the current state management and front-end rendering.
9+
- Add ability to log out from application, as currently log-in status will persist until app close
10+
- Save button
11+
- Allow the user to save ER diagrams into projects that can be retrieved and reloaded for future use.
12+
- Undo / Redo buttons
13+
- Allow the user to undo or redo changes made.
14+
- History
15+
- Display history of the schema state after each change.
16+
- Delete Table
17+
- Add a command to delete a table from the canvas, making sure to implement checks to maintain data integrity
18+
- Investigate React Flow additional functionality (there are tons!)
19+
- Take advantage of React Flow for a more dynamic interaction of the ER diagram.
20+
- Refactoring TypeScript
21+
- There are some components that are not fully typed in TypeScript.
22+
- Testing
23+
- Implementation of testing suite
24+
- Logging needs a default settings list and direct reimport into live database.
25+
- The SQL code to import has been placed into the DB_Schemas folder along with SQL Schema dumps. Also, log setting functionality is currently limited to Postgres databases and the code needs to be expanded to query and display log setting info from MySQL databases.
26+
- Security setting models need to be put in place for database tables as well as log files.
27+
- Db-schemas
28+
- The schemas are saved under db_schemas and is saved in the server. Have a way to delete the schemas on the server from the front end. It would also be convenient to add these schemas to a list of existing schemas and be able to pull these schemas to display for the user to avoid having to make a new connection to the same database multiple times.
29+
- Expand compatibility with other SQL database such as Oracle SQL, Microsoft SQL, IBM Db2, etc.
30+
- Add additional themes and graphical options to canvas and tables
31+
- Clean up unused dependencies from pre-3.0
32+
- Connecting to PostgreSQL database
33+
- When connecting to PostgreSQL to grab the data from the database, it takes a really long time to load (approximately 2 minutes); further investigate pg_dump alternatives for faster loading.
34+
35+
Known bugs/issues
36+
37+
- Table connection does not automatically render after a foreign key is added and the row data is saved. Currently, there is a popup message instructing the user to perform additional steps as a workaround.
38+
- Generate a cleaner initial table position that takes into account the dimensions of the generated tables.
39+
- Generate handle positions at primary key and foreign key row that the connection references.
40+
- Create logic for only primary keys (rows) to be a target for foreign keys.
41+
- The PrimaryKeyName in the References array within the database schema object is incorrect. It is pointing to the ReferencesPropertyName causing connection label to be incorrect. Review and update the SQL parser to correct this issue.
42+
- One part of the main page updates dark/light theme visibly later than the rest upon toggle

0 commit comments

Comments
 (0)