benwoodworth / humanresources Goto Github PK
View Code? Open in Web Editor NEWA human resources silo for RIT's Engineering of Enterprise Software Systems class (SWEN-343)
A human resources silo for RIT's Engineering of Enterprise Software Systems class (SWEN-343)
Create a search bar to filter employees/users by username, email, name, etc
Logging in with invalid credentials gives a 500 error.
We need to add some sort of validation to alert the user
e.g. if a permission is added, the user object in the session will not be updated.
Edited employee from the table
Changed phone number (original input was "a")
Saved
Got validation for phone number "###" etc
Formatted problem
Saved
Got a 500 Error
51278 [qtp299381662-27] ERROR spark.http.matching.GeneralError - com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'userId' in 'field list' at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:409) at com.mysql.jdbc.Util.getInstance(Util.java:384) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1054) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3566) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3498) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2113) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2568) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2113) at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1364) at swen343.hr.dependencies.EmployeeServiceMySql.editEmployee(EmployeeServiceMySql.kt:132) at swen343.hr.controllers.employees.ControllerEmployees$addRoutes$5.invoke(ControllerEmployees.kt:128) at swen343.hr.controllers.employees.ControllerEmployees$addRoutes$5.invoke(ControllerEmployees.kt:25) at spark.kotlin.HttpKt$post$1.handle(Http.kt:109) at spark.RouteImpl$1.handle(RouteImpl.java:72) at spark.http.matching.Routes.execute(Routes.java:61) at spark.http.matching.MatcherFilter.doFilter(MatcherFilter.java:130) at spark.embeddedserver.jetty.JettyHandler.doHandle(JettyHandler.java:50) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1568) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.Server.handle(Server.java:564) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:317) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128) at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590) at java.lang.Thread.run(Thread.java:745)
Routing number (String)
Account number (String)
...Or would it be better for accounting to have this in their database.
{ "reason": "string", "amount": 0 }
When an employee's salary is modified and saved, the field goes back to its original value.
Currently these silos are using our authorization api:
Click delete button
Shown "are you sure" popup
Shown popup 2nd time after hitting yes
Redirected to employee's profile instead of deleting
No view.ftl file
(Should link up with the username specified.)
Implement thomas the tank engine candy meme popup, triggered by the konami code.
Use the same template for every page for a consistent layout
All silos should be usin port 80 and have their vms set up as silo.kennuware.com
There should only be one
Salary components should include:
Call accounting's budget api /balance/{siloId}
and deduct our combined employee salary (sum of all the salaries) from the budget they are providing us.
Implement the payroll page
Right now if you're not logged in you get a 500 error trying to access most pages manually.
We can change this to a "help page" or redirect back to login
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.