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

Fix TileLayer unauthorized error due to breaking changes in deck.gl #519

Merged
merged 5 commits into from
Nov 2, 2022

Conversation

Josmorsot
Copy link
Contributor

@Josmorsot Josmorsot commented Nov 2, 2022

Description

Shortcut: (link)

TileLayer cause unauthorized error due to breaking changes in deck.gl.

Type of change

  • Fix

@coveralls
Copy link
Collaborator

coveralls commented Nov 2, 2022

Pull Request Test Coverage Report for Build 3378935863

  • 0 of 2 (0.0%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.02%) to 71.698%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/react-api/src/hooks/useTileFeatures.js 0 2 0.0%
Files with Coverage Reduction New Missed Lines %
packages/react-api/src/hooks/useTileFeatures.js 1 23.26%
Totals Coverage Status
Change from base Build 3378930884: -0.02%
Covered Lines: 1704
Relevant Lines: 2222

💛 - Coveralls

@Josmorsot Josmorsot changed the title add authorization header in fetch request Fix: Passing Authorization header to fetch requests Nov 2, 2022
CHANGELOG.md Outdated Show resolved Hide resolved
@@ -157,12 +157,12 @@ export default function useTileFeatures({
}

// WORKAROUND: To read headers and know if the tile is dropping features.
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the condition to finally remove this work-around in the future? Can we better describe it @Josmorsot ?
Ping @felixpalmer if required, to have the next step 100% clear

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we have no condition to remove this. For now it's the only way to do it.

@VictorVelarde VictorVelarde changed the title Fix: Passing Authorization header to fetch requests Fix TileLayer unauthorized error due to breaking changes in deck.gl Nov 2, 2022
Josmorsot and others added 2 commits November 2, 2022 14:31
Co-authored-by: Víctor Velarde <victor.velarde@gmail.com>
@Josmorsot Josmorsot merged commit 206f001 into master Nov 2, 2022
@Josmorsot Josmorsot deleted the add-authorization-header branch November 2, 2022 15:36
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.

3 participants