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

Update path aliases and move logger #474

Merged
merged 3 commits into from May 9, 2024

Conversation

thostetler
Copy link
Member

This changes the root path alias from @ to @/ which shows more explicitly project files vs external libs that might use that same syntax

Copy link

codecov bot commented Apr 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.3%. Comparing base (1c7081c) to head (21c38aa).
Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #474     +/-   ##
========================================
- Coverage    47.3%   47.3%   -0.0%     
========================================
  Files         425     425             
  Lines       44389   44446     +57     
  Branches      597     598      +1     
========================================
+ Hits        20988   21006     +18     
- Misses      23390   23429     +39     
  Partials       11      11             
Files Coverage Δ
src/api/api.ts 81.4% <100.0%> (-13.6%) ⬇️
src/api/author-affiliation/author-affiliation.ts 60.7% <100.0%> (ø)
src/api/biblib/libraries.ts 44.5% <100.0%> (ø)
src/api/biblib/types.ts 100.0% <100.0%> (ø)
src/api/config.ts 69.3% <100.0%> (ø)
src/api/export/export.ts 54.6% <100.0%> (ø)
src/api/export/types.ts 96.9% <100.0%> (ø)
src/api/feedback/feedback.ts 42.4% <100.0%> (ø)
src/api/feedback/types.ts 100.0% <100.0%> (ø)
src/api/graphics/graphics.ts 36.7% <100.0%> (ø)
... and 200 more

... and 4 files with indirect coverage changes

@@ -141,10 +141,11 @@ export const initSession = async (req: NextRequest, res: NextResponse) => {
if (isValidToken(token)) {
session.token = token;
session.isAuthenticated = isAuthenticated(token);
res.cookies.set(process.env.ADS_SESSION_COOKIE_NAME, headers.get('set-cookie') ?? '');
log.debug({ msg: 'headers', headers: headers.entries() });
const sessionCookieValue = headers.get('set-cookie').split('=')[1] ?? '';
Copy link
Member

Choose a reason for hiding this comment

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

possible undefined value on headers.get('set-cookie')?

Copy link
Member

@shinyichen shinyichen left a comment

Choose a reason for hiding this comment

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

Just that one comment to confirm no undefined error

@thostetler thostetler merged commit 4492c40 into adsabs:master May 9, 2024
2 of 3 checks passed
@thostetler thostetler deleted the fix-path-aliases branch May 9, 2024 14:47
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