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

Graphite: Deprecate browser access mode. #38783

Merged
merged 3 commits into from
Sep 2, 2021

Conversation

ifrost
Copy link
Contributor

@ifrost ifrost commented Sep 1, 2021

What this PR does / why we need it:

Browser (direct) access mode switcher was removed from Graphite configuration page in Grafana 6.6.0 (#20444). This option was just not added when configuration page was migrated to React and DataSourceHttpSettings component which requires explicitly showing it by passing showAccessOptions={true}. (Note that a similar thing happened with Prometheus in #20248 but it was fixed in #21833). Since then the only way to set browser access mode for Graphite is to provision the data source with access: direct settings.

We plan to remove browser access mode for some data sources and there's no guarantee we will keep it for Graphite so I just added a deprecation warning (similar to a warning that was added to Elastic in #29649) when it's already set:

Screen Shot 2021-09-01 at 13 56 15

Which issue(s) this PR fixes:

Fixes #38601

Special notes for your reviewer:

For the reference, this is how the config page changed between 6.5.0 and 6.6.0:

6.5.0 6.6.0
Screen Shot 2021-09-01 at 13 16 04 Screen Shot 2021-09-01 at 13 19 19

@ifrost ifrost added this to the 8.2.0 milestone Sep 1, 2021
@ifrost ifrost requested review from torkelo, davkal, Elfo404 and a team September 1, 2021 11:24
@ifrost ifrost requested review from pkolyvas and a team as code owners September 1, 2021 11:24
@ifrost ifrost requested review from osg-grafana and KMiller-Grafana and removed request for a team September 1, 2021 11:24
@grafanabot grafanabot added area/frontend type/docs Flags the technical writing team for documentation support; auto adds to org-wide docs project labels Sep 1, 2021
@achatterjee-grafana achatterjee-grafana added the old backport v8.1.x Mark PR for automatic backport to v8.1.x label Sep 1, 2021
@achatterjee-grafana
Copy link
Contributor

Doc needs to be backported to 8.1, ideally to 8.0 as well.

@achatterjee-grafana achatterjee-grafana changed the title Graphite: Deprecate browser access mode Deprecate browser access mode for the Graphite data source. Sep 1, 2021
@achatterjee-grafana
Copy link
Contributor

This PR also fixes #38601.

@ifrost ifrost added the old backport v8.0.x Mark PR for automatic backport to v8.0.x label Sep 2, 2021
@ifrost ifrost merged commit f941390 into main Sep 2, 2021
@ifrost ifrost deleted the ifrost/graphite-deprecate-browser-access-mode branch September 2, 2021 08:16
@grafanabot
Copy link
Contributor

The backport to v8.0.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new branch
git switch --create backport-38783-to-v8.0.x origin/v8.0.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x f9413906313c5578a1dce044150555a57bb56ddd
# Push it to GitHub
git push --set-upstream origin backport-38783-to-v8.0.x
git switch main
# Remove the local backport branch
git branch -D backport-38783-to-v8.0.x

Then, create a pull request where the base branch is v8.0.x and the compare/head branch is backport-38783-to-v8.0.x.

grafanabot pushed a commit that referenced this pull request Sep 2, 2021
* Deprecate browser access mode for Graphite

* Update docs

* Update copy

(cherry picked from commit f941390)
ifrost added a commit that referenced this pull request Sep 2, 2021
…38809)

* Deprecate browser access mode for Graphite

* Update docs

* Update copy

(cherry picked from commit f941390)

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
@achatterjee-grafana achatterjee-grafana changed the title Deprecate browser access mode for the Graphite data source. Graphite: Deprecate browser access mode. Sep 15, 2021
stevepostill pushed a commit to Reveal-International/grafana that referenced this pull request Nov 3, 2021
…-github to revdev

* commit '0d046c46b480ffc5fd602142a2b0e5dfc765b620': (63 commits)
  "Release: Updated versions in package to 8.1.3" (grafana#38965)
  Change grabpl version to 2.3.4 (grafana#38967)
  PieChart: Display "No data" when there is no data (grafana#38808) (grafana#38960)
  track signature files + add warn log (grafana#38938) (grafana#38958)
  Docs: Clarify delta value (grafana#38824) (grafana#38916)
  Postgres/MySQL/MSSQL: Fix region annotations not displayed correctly (grafana#38936) (grafana#38953)
  uPlot: Fix default value for plot legend visibility (grafana#36660) (grafana#38930)
  Prometheus: Fix validate selector in metrics browser (grafana#38921) (grafana#38926)
  Dashboard: Forces panel re-render when exiting panel edit (grafana#38913) (grafana#38919)
  [v8.1.x] Dashboard: Fix UIDs are not preserved when importing/creating dashboards thru importing .json file (grafana#38892)
  OAuth: add docs for disableAutoLogin param (grafana#38752) (grafana#38896)
  LibraryPanels: Prevents duplicate repeated panels from being created (grafana#38804) (grafana#38863)
  Adding missing information, more than just the manual backport. (grafana#38837)
  Elasticsearch: Prevent pipeline aggregations to show up in terms order by options (grafana#38448) (grafana#38830)
  Build: Upgrade grabpl to 2.4.2 (grafana#38820) (grafana#38828)
  Alerting: Fix alert flapping in the internal alertmanager (grafana#38648) (grafana#38829)
  [v8.1.x] Chore: Update to alpine:3.14.2 (grafana#38821)
  Update Dockerfile (grafana#38785) (grafana#38815)
  Deprecate browser access mode for the Graphite data source. (grafana#38783) (grafana#38809)
  Live: prepend orgId when publishing from HTTP (grafana#38775) (grafana#38793)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add to changelog area/frontend datasource/Graphite old backport v8.0.x Mark PR for automatic backport to v8.0.x old backport v8.1.x Mark PR for automatic backport to v8.1.x type/docs Flags the technical writing team for documentation support; auto adds to org-wide docs project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing "Access" config in datasource UI
4 participants