Giter Site home page Giter Site logo

valentin-vasilev-employees's Introduction


Logo

Employees Analyzer

Application that identifies the pair of employees who have worked together on common projects for the longest period of time.

Used technologies

  • Intellij
  • Java
  • Maven
  • Sonar
  • Git

Hot to use it

  • Clone the repository.
    git clone https://github.com/vasilev02/Valentin-Vasilev-employees
  • Run this command which will produce two jar files(artifacts). The name of the jars depends on the build configuration in the pom file, artifactId and name of project.
    mvn assembly:single
  • Go to target directory and to start the jar either use this command in terminal or if you navigate to the absolute path you can double click it and it will start.
    java -jar employees-1.0-SNAPSHOT-jar-with-dependencies.jar
  • Upload CSV file and see the result.

Functionallity

The user picks up a file from the file system and, after selecting it, all common projects of the pair who have worked together on common projects for the longest period of time are displayed in a brief information with datagrid. We support different Date formats. The calculation is being computed in days.


Screenshot 2024-03-31 at 13 31 21

User interface

UI is simple structure from Java Swing API. It contains button for uploading csv files which listens all the time for interact with files. After we upload file we will see information about longest working pair in two containers. First container inludes all common projects of the pair are displayed in datagrid with the following columns: Employee ID #1, Employee ID #2, Project ID, Days worked. Second is text area with infomration about the employees id, total count projects, respectively total days count calculated in days. There is a info also about the weeks, months and years if there are employees working for a very long time. The last one shows every project with it's id and worked days related to it.

Error handling

For this part we have simple error handling coded. If you try to upload CSV file which is empty, with invalid dates or invalid structure like row without employee key or without either start date or end date it will throw exception with the related message.

Unit tests

Comprehensive unit tests using a framework Junit to ensure code correctness and reliability.


Screenshot 2024-03-31 at 13 24 45

Connect with me

linkedin

valentin-vasilev-employees's People

Contributors

vasilev02 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.