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

277 fake jira issue generator without jiragiler #280

Conversation

anthonyjlau
Copy link
Collaborator

Created 2 new files, jira-new.R and test-jira-new.R, to make a new fake data generator without the edits that JirAgileR makes to the data.

@carlosparadis
Copy link
Member

@anthonyjlau Your code should be added to R/jira.R. The files are organized so to reflect modules in the code. Let's iterate over the specification on the task issue on code organization.

Auto_unbox formats the JSON files properly and the modified/ removed files are so checks can pass.
Copy link

codecov bot commented Feb 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 38.56%. Comparing base (2bc8d14) to head (917ba35).
Report is 1 commits behind head on master.

❗ Current head 917ba35 differs from pull request most recent head 43638ac. Consider uploading reports for the commit 43638ac to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #280      +/-   ##
==========================================
- Coverage   39.79%   38.56%   -1.23%     
==========================================
  Files          20       20              
  Lines        3091     3101      +10     
==========================================
- Hits         1230     1196      -34     
- Misses       1861     1905      +44     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@anthonyjlau
Copy link
Collaborator Author

@carlosparadis My R-CMD-check is failing because create_base_info and create_ext_info is in a documentation object but I am not sure what this documentation object is in.

The warning is on line 548:
https://github.com/sailuh/kaiaulu/actions/runs/8027363702/job/21931238840?pr=280#step:10:548

@carlosparadis
Copy link
Member

@anthonyjlau #280 (comment)

Did you recompile the documentation like the workflow on how the PR should be made suggests?

Added functions 'create_fix_versions', 'create_parent', 'create_priority' and 'create_project'. I also changed some existing functions to make naming more consistent.
@anthonyjlau
Copy link
Collaborator Author

@carlosparadis As you said, I needed to recompile the documentation. However, now I get an error saying:

✖ `make_jira_issue` masks `kaiaulu::make_jira_issue()`.
✖ `make_jira_issue_tracker` masks `kaiaulu::make_jira_issue_tracker()`.
ℹ Did you accidentally source a file rather than using `load_all()`?

Also, when I try to build Kaiaulu (ie. hitting the Install button at the top) I get:

The following objects are masked _by_ ‘.GlobalEnv’:
    make_jira_issue, make_jira_issue_tracker

I did not change any documentation in R/jira.R and I am not sure what this means. Help on this would be appreciated!

Copy link
Collaborator

@ian-lastname ian-lastname left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks alright as far as I can see.

@carlosparadis
Copy link
Member

@anthonyjlau

You need to address the RMD-Check not passing before I can review.

@anthonyjlau
Copy link
Collaborator Author

When I was merging the Kaiaulu master branch with my origin master branch, I accidently pushed changes on to my master branch that was not intended. In order to solve this, I did git checkout <commit hash> where the commit hash was the one for the previous commit. Then, I forced pushed that commit using git push origin master -f. This required me to setup an SSH key with GitHub. I followed this website to make a SSH key and this website to add it to my account. After doing that, I was able to fix my master branch on my origin and do the merge.

Leaving this here so there is some documentation of this.

Copy link
Member

@carlosparadis carlosparadis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not done a test run on my local machine yet, but please address these first before then.

issues_comments_list <- parse_jira(json_path = jira_json_path)
issues <- issues_comments_list[["issues"]]
# issues_comments_list <- parse_jira(json_path = jira_json_path)
# issues <- issues_comments_list[["issues"]]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After everything else is modified, I will let you know when to uncoment these.

@carlosparadis
Copy link
Member

Working on this PR next. Please do not commit to your fork.

- Example functions now return folder paths, which
is required by the parsers.

- Unit tests delete folder functions have been re-added.

- Functions passed parameters reverted to "/tmp"

Signed-off-by: Carlos Paradis <carlosviansi@gmail.com>
@carlosparadis
Copy link
Member

Check still fails due to reference to a function that doesn't exist (the downloader).

Signed-off-by: Carlos Paradis <carlosviansi@gmail.com>
Signed-off-by: Carlos Paradis <carlosviansi@gmail.com>
@carlosparadis
Copy link
Member

Checks will still fail here due to the reference to the downloader, but the Fake data generator worked fine with the parser. One thing that was missing was the removal of the examples folder. That has also been addressed. Parser can now be unit tested and tests pass. Only thing missing is the Downloader, at which point all checks should pass.

The Notebook should also be updated on the Downloader to reflect the new setup.

@carlosparadis carlosparadis merged commit fb2618e into sailuh:master Apr 14, 2024
1 of 2 checks passed
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

Successfully merging this pull request may close these issues.

4 participants