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

[chore] move receiver/scrapererror to scraper/scrapererror #11733

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jackgopack4
Copy link
Contributor

Description

Migrates existing scrapererror code to new scraper package. Sets aliases for receiver/scrapererror so that dependent code in contrib and elsewhere can be updated

Link to tracking issue

Relates to #11003

Testing

included unit/integration tests should suffice

Documentation

changelog yaml

Copy link

codecov bot commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.61%. Comparing base (c6828f0) to head (5f33d6d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11733   +/-   ##
=======================================
  Coverage   91.61%   91.61%           
=======================================
  Files         443      443           
  Lines       23770    23770           
=======================================
  Hits        21776    21776           
  Misses       1620     1620           
  Partials      374      374           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@jackgopack4 jackgopack4 marked this pull request as ready for review November 25, 2024 17:35
@jackgopack4 jackgopack4 requested a review from a team as a code owner November 25, 2024 17:35
@jackgopack4
Copy link
Contributor Author

@bogdandrutu @mx-psi if you want to take a look, thank you

Copy link
Member

@mx-psi mx-psi left a comment

Choose a reason for hiding this comment

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

Left some comments, can you also fix the merge conflicts?

component: receiver/scraper

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: receiver/scraperhelper package is relocated to scraper/scraperhelper and receiver/scraperhelper marked deprecated.
Copy link
Member

Choose a reason for hiding this comment

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

nit: Use active voice in changelogs

Suggested change
note: receiver/scraperhelper package is relocated to scraper/scraperhelper and receiver/scraperhelper marked deprecated.
note: Move receiver/scraperhelper package to scraper/scraperhelper and deprecate original receiver/scraperhelper package.

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext: Aliases are added in receiver/scraperhelper to support backward compatibility but will be removed in the future.
Copy link
Member

Choose a reason for hiding this comment

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

I think this is already implied by the above

Suggested change
subtext: Aliases are added in receiver/scraperhelper to support backward compatibility but will be removed in the future.

// SPDX-License-Identifier: Apache-2.0

// Package scrapererror provides aliases for package scraper/scrapererror.
// deprecated as of [v0.115.0]
Copy link
Member

Choose a reason for hiding this comment

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

This needs to follow the deprecated directive format so that linters pick it up

Suggested change
// deprecated as of [v0.115.0]
// Deprecated: [v0.115.0] Use `scraper/scrapererror` instead.

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