Approach | Time Taken |
---|---|
Git filter branch on a forked copy of the repo | 15 hours |
BFG with aggressive flag on a duplicated copy of the repo | 36 hours |
BFG without aggressive flag on a duplicated copy of the repo | 5 minutes |
This file contains hidden or 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
FAIL src/App.test.js | |
● Console | |
console.error | |
Found an unhandled GET request to https://jsonplaceholder.typicode.com/posts | |
7 | onUnhandledRequest(req) { | |
8 | const errorMessage = `Found an unhandled ${req.method} request to ${req.url.href}`; | |
> 9 | console.error(errorMessage); | |
| ^ |
This file contains hidden or 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
import { render, screen } from '@testing-library/react'; | |
import userEvent from '@testing-library/user-event'; | |
import getAndSetupServer from './getAndSetupServer'; | |
import { rest } from 'msw'; | |
import App from './App'; | |
getAndSetupServer([ | |
rest.get( | |
`https://jsonplaceholder.typicode.com/posts`, | |
async (req, res, ctx) => |
This file contains hidden or 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
import { setupServer } from 'msw/node'; | |
export default function getAndSetupServer(handlers = []) { | |
const server = setupServer(...handlers); | |
beforeAll(() => { | |
server.listen({ | |
onUnhandledRequest(req) { | |
const errorMessage = `Found an unhandled ${req.method} request to ${req.url.href}`; | |
console.error(errorMessage); | |
throw errorMessage; |
This file contains hidden or 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
import { useState, useCallback } from 'react'; | |
import axios from 'axios'; | |
import './App.css'; | |
function App() { | |
const [posts, setPosts] = useState([]); | |
const [error, setError] = useState(false); | |
const fetchRequest = useCallback(() => { | |
axios.get('https://jsonplaceholder.typicode.com/posts') |
This file contains hidden or 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
Action | Timeframe | Who | Full instructions | Start date | Done | |
---|---|---|---|---|---|---|
Communicate code freeze to UI teams. | 5 mins | Aislinn Hayes | Post on Slack channels. | Day 1 | ||
Check that all PRs are closed and branches are deleted where possible. | 15 mins | Aislinn Hayes | N/A | |||
... | ... | ... | ... | ... | ... |
This file contains hidden or 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
#!/bin/bash | |
read -p "Before commencing the script to remove the files, have you made a backup of your repository? (y/n) " -n 1 -r | |
echo # (optional) move to a new line | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then | |
read -p "Have you created a mirror clone of your repository, and have you removed any references to the files from the .gitignore file in your repo, and pushed this change? (y/n) " -n 1 -r | |
echo # (optional) move to a new line | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then | |
read -p "Is this laptop connected to LAN, connected to power, and have you ensured that this laptop will not sleep by changing Energy Settings on Mac? (y/n) " -n 1 -r |
NewerOlder