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

Base class for importing employees between fyle and bamboohr #110

Merged
merged 7 commits into from
Dec 26, 2023

Conversation

Ashutosh619-sudo
Copy link
Contributor

No description provided.

Copy link

Tests Skipped Failures Errors Time
45 1 💤 0 ❌ 0 🔥 3.005s ⏱️

Comment on lines 8 to 9
bamboohr = BambooHr.objects.get(org_id__in= org_id)
self.bamboohr_sdk = BambooHrSDK(api_token=bamboohr.api_token, sub_domain=bamboohr.sub_domain)
Copy link
Contributor

Choose a reason for hiding this comment

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

let's involve sdk only in the child class, base class shouldn't do anything app specific

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ohh yes

pass

def sync_hrms_employees(self):
raise NotImplementedError('')
Copy link
Contributor

Choose a reason for hiding this comment

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

add a valid message, 'Implement sync_hrms_employees() in the child class'

Copy link

codecov bot commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7e636a8) 94.47% compared to head (5762644) 94.47%.

❗ Current head 5762644 differs from pull request most recent head d9aa46f. Consider uploading reports for the commit d9aa46f to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #110   +/-   ##
=======================================
  Coverage   94.47%   94.47%           
=======================================
  Files          30       30           
  Lines        1031     1031           
=======================================
  Hits          974      974           
  Misses         57       57           

Copy link

Tests Skipped Failures Errors Time
45 1 💤 0 ❌ 0 🔥 2.527s ⏱️

Copy link

Tests Skipped Failures Errors Time
45 1 💤 0 ❌ 0 🔥 2.605s ⏱️

Copy link

Tests Skipped Failures Errors Time
45 1 💤 0 ❌ 0 🔥 2.955s ⏱️

Copy link

Tests Skipped Failures Errors Time
45 1 💤 0 ❌ 0 🔥 2.793s ⏱️

* Implementaion of sync method for fyle and bamboohr

* sync employees method added to platform connector

* implementation of sync fyle and bamboo hr

* removing api_token

* indent correction

* comment resolved

* minor bug fix

* better code

* Import sync department (#115)

* Syncing Department from Bamboohr to Fyle

* resolved commented code

* better optimized code

* comment resolved

* Employee and Approver Import (#116)

* Employee and Approver Import

* bug fix and comment resolved
Copy link

Tests Skipped Failures Errors Time
45 1 💤 0 ❌ 0 🔥 3.024s ⏱️

@Ashutosh619-sudo Ashutosh619-sudo merged commit 263c4e0 into master Dec 26, 2023
1 check failed
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.

2 participants