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

Scripts on Wizard #2487

Merged
merged 2 commits into from Mar 26, 2024
Merged

Conversation

Williangalvani
Copy link
Member

Needs more testing, but looking good so far. I'll review it tomorrow

@Williangalvani
Copy link
Member Author

@@ -648,6 +667,34 @@ export default Vue.extend({
})
.catch((error) => `Failed to fetch available firmware: ${error.message ?? error.response?.data}.`)
},
async installScripts(): Promise<ConfigurationStatus> {
const scripts_folder = 'configs/ardupilot-manager/firmware/scripts/'
await filebrowser.createFolder('')
Copy link
Member

Choose a reason for hiding this comment

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

what ? create a folder with empty name ?

Copy link
Member Author

Choose a reason for hiding this comment

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

yep, this is wrong

Copy link
Member Author

Choose a reason for hiding this comment

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

the upside is we found out we don't need to explicitly create the folder

console.log(e)
return `Failed to install scripts ${e}`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
console.log(e)
return `Failed to install scripts ${e}`
const error = `Failed to install scripts ${e}`
console.log(error)
return error


import { availableFirmwares, fetchCurrentBoard } from '../autopilot/AutopilotManagerUpdater'

const REPOSITORY_ROOT = 'https://williangalvani.github.io/Blueos-Parameter-Repository_/'
Copy link
Member

Choose a reason for hiding this comment

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

can we remove the trailing / for the path strings to be clear as path strings ?
E.g:

const REPOSITORY_URL = `${REPOSITORY_ROOT}/scripts_v1.json`
// Over
const REPOSITORY_URL = `${REPOSITORY_ROOT}scripts_v1.json`

@patrickelectric patrickelectric merged commit b1e7fce into bluerobotics:master Mar 26, 2024
6 checks passed
@patrickelectric
Copy link
Member

@Williangalvani can you cherry-pick to 1.2 ?

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.

None yet

2 participants