Skip to content

Add --forms arg to scrape, adjust ftp fang regex (SYN-5266, SYN-5234, SYN-5302) #3127

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

Merged
merged 21 commits into from
May 15, 2023

Conversation

Cisphyx
Copy link
Contributor

@Cisphyx Cisphyx commented May 8, 2023

No description provided.

@codecov
Copy link

codecov bot commented May 8, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.48 🎉

Comparison is base (36e6e6a) 96.70% compared to head (7116876) 97.19%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3127      +/-   ##
==========================================
+ Coverage   96.70%   97.19%   +0.48%     
==========================================
  Files         222      222              
  Lines       44272    44292      +20     
==========================================
+ Hits        42814    43050     +236     
+ Misses       1458     1242     -216     
Flag Coverage Δ
linux 97.19% <100.00%> (+14.11%) ⬆️
linux_replay ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
synapse/lib/scrape.py 99.30% <100.00%> (+0.03%) ⬆️
synapse/lib/storm.py 95.82% <100.00%> (-0.03%) ⬇️
synapse/lib/view.py 97.07% <100.00%> (-0.32%) ⬇️

... and 17 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

msgs = await core.stormlist('[ media:news=* :title="https://t.c\\\\" ] | scrape :title')
self.stormIsInWarn('BadTypeValue', msgs)
self.stormHasNoWarnErr(msgs)
Copy link
Contributor

@vEpiphyte vEpiphyte May 8, 2023

Choose a reason for hiding this comment

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

we'll need to note the lack of warnings for bad values now

@vEpiphyte vEpiphyte added this to the v2.13x.x milestone May 8, 2023
vEpiphyte
vEpiphyte previously approved these changes May 11, 2023
refang = await s_stormtypes.tobool(self.opts.dorefang)

if not isinstance(forms, (tuple, list, set)):
forms = (forms,)
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets also add a split on , here so --forms foo:bar,baz:faz works too 👍

@Cisphyx Cisphyx merged commit aed53c0 into master May 15, 2023
@Cisphyx Cisphyx deleted the scrape-forms branch May 15, 2023 15:50
@vEpiphyte vEpiphyte removed the reqChangelog requires changelog label May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants