Skip to content

Convert Request Graph node types + request node requestTypes to numbers#9412

Merged
gorakong merged 9 commits into
v2from
gkong/reduce-cache
Nov 29, 2023
Merged

Convert Request Graph node types + request node requestTypes to numbers#9412
gorakong merged 9 commits into
v2from
gkong/reduce-cache

Conversation

@gorakong

@gorakong gorakong commented Nov 28, 2023

Copy link
Copy Markdown
Contributor

↪️ Pull Request

💻 Examples

Example request node before:

{
  id: 'target_request:6a6450d10c82f7d2',
  type: 'request',
  requestType: 'target_request',
  invalidateReason: 0
}

After (type and requestTypes are now numbers):

{
  id: 'target_request:6a6450d10c82f7d2',
  type: 1,
  requestType: 5,
  invalidateReason: 0
}

Example file node before:

{ id: 'node_modules/fast-glob/out/utils/errno.js', type: 'file' }

After (type is now a number):

{ id: 'node_modules/fast-glob/out/utils/errno.js', type: 0 }

@gorakong gorakong changed the title [draft] Convert Request Graph node types + request node requestTypes to numbers Nov 28, 2023
@gorakong gorakong marked this pull request as ready for review November 29, 2023 20:07

@mattcompiles mattcompiles left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice one 🚀

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.

2 participants