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

Get "Workspace to pull" on test_rdr to work again #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

paulj3
Copy link
Contributor

@paulj3 paulj3 commented Sep 26, 2024

When Kyle and I were rotating the JSON Auth tokens, we tried to test the RDR api on stable and ran into a problem where we were not able to pull a single record from RDR

After looking into this, it looks like this commit from 9 months ago removed the single project functionality.

I went through the rdr_pull method and added this functionality back in without impacting it's cron results.

@paulj3 paulj3 requested a review from kcmcg September 26, 2024 20:02
@paulj3
Copy link
Contributor Author

paulj3 commented Sep 26, 2024

@kcmcg this PR will fix the problem where we could not test the new JSON credentials in STABLE today

Comment on lines -655 to +663
if($testingOnly[$urlKey] == "1") {
if(!$debugApi) {
echo "<pre>".htmlspecialchars($recordId." => ".var_export($rowData,true))."</pre>";echo "<br />";
}
if($debugApi) {
echo "<pre>".htmlspecialchars($recordId." => ".var_export($rowData,true))."</pre>";echo "<br />";
}
else {
if ($testingOnly[$urlKey] != "1") {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kcmcg I am changing this around so we can use test_rdr without having to put the module in test mode, because we shouldn't have to stop the functionality to see a a debug on the test page.

Copy link
Contributor

@kcmcg kcmcg left a comment

Choose a reason for hiding this comment

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

This looks like a good fix for this issue as well as making it easier to test generally.

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