// Optional: Only include posts that have at least one 'activities' term
$tax_query = array(
'relation' => 'OR',
array(
'taxonomy' => 'activities',
'operator' => 'EXISTS'
),
Note "The main branch" in the following text refers to either "master" or "develop" depending on the project.
- Start your feature branch from the latest on the main branch.
- Make commits along the way which represent cohesive chunks of functionality. This can be a single commit for a feature, or multiple commits if necessary. Please utilize
git commit --amend
and orgit rebase HEAD~<n> -i
to keep history clean and orderly to the best of your ability. - Rebase off the main branch frequently to make sure you are getting upstream changes. Ex:
git fetch && git rebase origin/master
-- Fix any conflicts as they arrive during this process. - Open a PR when the feature is ready, but always rebase again before making the PR.
- If changes are requested: make the changes and rebase again (there will often be new work in the main branch after code review, because we code review multiple PRs at the same time, and some will be merged). Note: A force push may be required to get the new changes up to
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export async function useMocks(page, mocks) { | |
await page.setRequestInterception(true); | |
page.on("request", async (request) => { | |
if (request.postData() && JSON.parse(request.postData()).operationName) { | |
const mock = mocks.find( | |
(mock) => mock.name === JSON.parse(request.postData()).operationName | |
); | |
if (mock) { | |
await delay(500); | |
request.respond({ |