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

Indexer #49

Merged
merged 1 commit into from
Feb 9, 2023
Merged

Indexer #49

merged 1 commit into from
Feb 9, 2023

Conversation

m00sey
Copy link
Member

@m00sey m00sey commented Jan 29, 2023

No description provided.

@m00sey m00sey requested a review from jasoncolburne as a code owner January 29, 2023 18:34
@m00sey m00sey marked this pull request as draft January 29, 2023 18:34
src/core/indexer/mod.rs Outdated Show resolved Hide resolved
src/core/indexer/mod.rs Outdated Show resolved Hide resolved
src/core/indexer/mod.rs Outdated Show resolved Hide resolved
src/core/indexer/tables.rs Outdated Show resolved Hide resolved
src/core/indexer/mod.rs Outdated Show resolved Hide resolved
code: &str,
raw: &[u8],
index: u32,
mut ondex: Option<u32>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of making optional params just yet, I have usually opted for explicit functions that either have the param or don't. In the (possibly near) future, we can, if it is necessary during higher level composition, add wrappers that check for the existence of the optional and delegate to the appropriate function under the hood (think new() without qualifiers, and optional params just like the__init__() methods in Python). This gives us more flexibility in composition within CESR, and will likely allow you to clean up some if nesting in this process. Something to consider.

@jasoncolburne jasoncolburne mentioned this pull request Feb 1, 2023
@m00sey m00sey force-pushed the indexer branch 2 times, most recently from 112ce40 to d596f39 Compare February 2, 2023 21:41
@codecov
Copy link

codecov bot commented Feb 2, 2023

Codecov Report

Merging #49 (4cf13ab) into main (73c6404) will decrease coverage by 5.47%.
The diff coverage is 75.55%.

❗ Current head 4cf13ab differs from pull request most recent head 900bc85. Consider uploading reports for the commit 900bc85 to get more accurate results

@@            Coverage Diff             @@
##             main      #49      +/-   ##
==========================================
- Coverage   97.83%   92.36%   -5.47%     
==========================================
  Files           9       11       +2     
  Lines         968     1283     +315     
==========================================
+ Hits          947     1185     +238     
- Misses         21       98      +77     
Impacted Files Coverage Δ
src/error.rs 0.00% <ø> (ø)
src/core/indexer/mod.rs 62.80% <62.80%> (ø)
src/core/indexer/tables.rs 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@m00sey m00sey requested a review from jasoncolburne February 8, 2023 20:45
@m00sey m00sey marked this pull request as ready for review February 8, 2023 20:45
@m00sey m00sey force-pushed the indexer branch 3 times, most recently from 2bbb7bb to d250457 Compare February 9, 2023 01:48
jasoncolburne
jasoncolburne previously approved these changes Feb 9, 2023
Copy link
Collaborator

@jasoncolburne jasoncolburne left a comment

Choose a reason for hiding this comment

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

Looks really good, only a few minor comments. I don't think any are critical and since we still need to finish this off in a following PR, I'll approve here and you can decide if you want to merge as is and make any tweaks later, or touch up. I can re-review if you need.

src/core/indexer/mod.rs Outdated Show resolved Hide resolved
src/core/indexer/mod.rs Show resolved Hide resolved
src/core/indexer/mod.rs Outdated Show resolved Hide resolved
src/core/indexer/mod.rs Show resolved Hide resolved
src/core/indexer/mod.rs Show resolved Hide resolved
Copy link
Collaborator

@jasoncolburne jasoncolburne left a comment

Choose a reason for hiding this comment

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

💥

@m00sey m00sey merged commit 836345e into WebOfTrust:main Feb 9, 2023
@m00sey m00sey deleted the indexer branch February 9, 2023 16:03
@jasoncolburne jasoncolburne linked an issue Feb 16, 2023 that may be closed by this pull request
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.

Implement indexer
2 participants