mirror of
https://github.com/photoprism/photoprism.git
synced 2026-03-02 22:57:18 -05:00
Frontend: Axios HTTP client should be upgraded to v1.x #1598
Labels
No labels
ai
android
api
auth
awesome
bug
bug
ci
cli
config
database
declined
deprecated
docker
docs 📚
documents
duplicate
easy
enhancement
enhancement
enhancement
epic
faces
feedback wanted
frontend
hacktoberfest
help wanted
idea
in-progress
incomplete
index
invalid
ios
labels
live
live
low-priority
macos
member-feature
metadata
mobile
nas
needs-analysis
no-coding-required
no-coding-required
observability
performance
places
please-test
plus-feature
priority
pro-feature
question
raspberry-pi
raw
released
released
released
research
resolved
security
sharing
tested
tests
third-party-issue
thumbnails
upgrade
upstream-issue
ux
vector
video
waiting
won't fix
won't fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/photoprism#1598
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lastzero on GitHub (Nov 2, 2022).
As a developer, I want to use the latest Axios version to avoid possible security issues and bugs in the old version.
We use
^0.27.2while the latest version currently is1.1.3. When simply installing the latest version, our tests failed due to missing dependencies or other incompatibilities related to NodeJS. The compatibility and functionality of the frontend and all web browsers must as well be tested after the upgrade. Any help is much appreciated!@ltomes commented on GitHub (Nov 6, 2022):
I took a first pass look at this. Before upgrade, I have 7 failing unit tests for timezone related issues.
I'm going to start by seeing if I can programmatically set the expected datetime so the tests pass on different systems/timezones.
@lastzero commented on GitHub (Nov 6, 2022):
Run them in the Docker container which uses UTC.
@ltomes commented on GitHub (Nov 6, 2022):
I attempted that to start with, but ran into an error running
docker compose -f "docker-compose.local.yml" up -d --buildI'll talke another pass at using the provided compose...
@lastzero commented on GitHub (Nov 6, 2022):
See https://docs.photoprism.app/developer-guide/setup/
@ltomes commented on GitHub (Nov 6, 2022):
Same results in a container (
make test-js):Is there a chance these failures started this AM with the timezone shift?
I suppose I could just keep working on the task and ignore those 7 tests.
Re: the actual task, it seems rough.
Every dependency from webpack that
axios-mock-adapteris expectingaxiosto use no longer exists sinceaxiosstopped using webpack.The big pain points being
http,https,stream,url,assert,zlib.I don't see others using the mock adapter reporting the same errors so it could be something unique to
photoprisms test setup.@lastzero commented on GitHub (Nov 7, 2022):
Ignore the date errors as they are unrelated. Might have to improve them like you suggested 👍