Skip to content
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

[RIT] Data Piping - Sending transformed data #148

Open
cmr6689 opened this issue Nov 1, 2022 · 0 comments
Open

[RIT] Data Piping - Sending transformed data #148

cmr6689 opened this issue Nov 1, 2022 · 0 comments
Assignees

Comments

@cmr6689
Copy link
Contributor

cmr6689 commented Nov 1, 2022

Story

As a TSDetect user who has agreed to send my usage data for research purposes, I want my usage data to be transformed into a usable form and sent to the centralized database.

Requirements

  • The test results generated from the TSDetect plugin shall be scanned for the following sendable information:
    • Timestamp
    • A list of test smells, and associated number of occurrences
  • The sendable information, along with the users uid, shall be compiled into a hashmap with the following format:
    • userID : 0
    • Timestamp in “yyyy-mm-dd hh:mm:ss” format : 0
    • Testsmell Name : Number of that test smell found
      • ^ Above is repeated the required number of times to incorporate all test smells
  • The hashmap of sendable data shall be wrapped in a JSON format
    • Data is sent over HTTP as a JSON object
  • The TSDetect tool shall attempt to connect to the “POST /test-results” endpoint of the TSDetect input API and send this json
    • If the POST request does NOT return a response of 200, TSDetect shall attempt to connect again, to a maximum of five attempts.
      • If the POST request fails to return a response of 200 five consecutive times, TSDetect will store the json as a file locally
    • If the POST request returns a response of 200, TSDetect shall dispose of the data collected
    • If there are any json files located in TSDetect’s designated local storage area, it shall verify that they are of the correct format
      • If they are, TSDetect shall repeat the POST /test-results with this json file.
@cmr6689 cmr6689 self-assigned this Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant