mirror of
https://github.com/SigNoz/signoz.git
synced 2026-11-25 01:31:19 +00:00
Compare commits
4 Commits
perf/web-i
...
perf/analy
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c3036ee9a0 | ||
|
|
394e984137 | ||
|
|
15fbd8b2b5 | ||
|
|
60ac8a570e |
3
frontend/.gitignore
vendored
3
frontend/.gitignore
vendored
@@ -1,7 +1,4 @@
|
||||
|
||||
# Vite copies public/ unhashed, and the Go server caches /assets/ as immutable
|
||||
/public/assets/
|
||||
|
||||
# Sentry Config File
|
||||
.env.sentry-build-plugin
|
||||
.qodo
|
||||
|
||||
@@ -27,10 +27,15 @@ import { ChatSupportState, useChatSupport } from 'hooks/useChatSupport';
|
||||
import { useIsDarkMode } from 'hooks/useDarkMode';
|
||||
import { useGetTenantLicense } from 'hooks/useGetTenantLicense';
|
||||
import { StatusCodes } from 'http-status-codes';
|
||||
import {
|
||||
getLoadedPostHog,
|
||||
loadPostHog,
|
||||
resetPostHog,
|
||||
withPostHog,
|
||||
} from 'lib/analytics/posthog';
|
||||
import { IS_PROD } from 'lib/env';
|
||||
import { getCurrentLocation, navigate, subscribe } from 'lib/router/navigation';
|
||||
import ErrorBoundaryFallback from 'pages/ErrorBoundaryFallback/ErrorBoundaryFallback';
|
||||
import posthog from 'posthog-js';
|
||||
import { useAppContext } from 'providers/App/App';
|
||||
import { IUser } from 'providers/App/types';
|
||||
import { LicenseStatus } from 'types/api/licensesV3/getActive';
|
||||
@@ -126,11 +131,11 @@ function App(): JSX.Element {
|
||||
};
|
||||
|
||||
if (email) {
|
||||
logEvent('Email Identified', identifyPayload, 'identify');
|
||||
void logEvent('Email Identified', identifyPayload, 'identify');
|
||||
}
|
||||
|
||||
if (domain) {
|
||||
logEvent('Domain Identified', groupTraits, 'group');
|
||||
void logEvent('Domain Identified', groupTraits, 'group');
|
||||
}
|
||||
if (window && window.Appcues) {
|
||||
window.Appcues.identify(id, {
|
||||
@@ -145,26 +150,28 @@ function App(): JSX.Element {
|
||||
});
|
||||
}
|
||||
|
||||
posthog?.identify(id, {
|
||||
email,
|
||||
name: displayName,
|
||||
orgName,
|
||||
deployment_name: hostNameParts[0],
|
||||
data_region: hostNameParts[1],
|
||||
deployment_url: hostname,
|
||||
company_domain: domain,
|
||||
source: 'signoz-ui',
|
||||
isPaidUser: !!trialInfo?.trialConvertedToSubscription,
|
||||
});
|
||||
void withPostHog((posthog) => {
|
||||
posthog.identify(id, {
|
||||
email,
|
||||
name: displayName,
|
||||
orgName,
|
||||
deployment_name: hostNameParts[0],
|
||||
data_region: hostNameParts[1],
|
||||
deployment_url: hostname,
|
||||
company_domain: domain,
|
||||
source: 'signoz-ui',
|
||||
isPaidUser: !!trialInfo?.trialConvertedToSubscription,
|
||||
});
|
||||
|
||||
posthog?.group('company', orgId, {
|
||||
name: orgName,
|
||||
deployment_name: hostNameParts[0],
|
||||
data_region: hostNameParts[1],
|
||||
deployment_url: hostname,
|
||||
company_domain: domain,
|
||||
source: 'signoz-ui',
|
||||
isPaidUser: !!trialInfo?.trialConvertedToSubscription,
|
||||
posthog.group('company', orgId, {
|
||||
name: orgName,
|
||||
deployment_name: hostNameParts[0],
|
||||
data_region: hostNameParts[1],
|
||||
deployment_url: hostname,
|
||||
company_domain: domain,
|
||||
source: 'signoz-ui',
|
||||
isPaidUser: !!trialInfo?.trialConvertedToSubscription,
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
@@ -302,16 +309,7 @@ function App(): JSX.Element {
|
||||
|
||||
useEffect(() => {
|
||||
if (isCloudUser || isEnterpriseSelfHostedUser) {
|
||||
if (
|
||||
window.signozBootData?.settings?.posthog?.enabled &&
|
||||
window.signozBootData?.settings?.posthog?.key
|
||||
) {
|
||||
posthog.init(window.signozBootData.settings.posthog.key, {
|
||||
api_host: window.signozBootData.settings.posthog.apiHost,
|
||||
ui_host: window.signozBootData.settings.posthog.uiHost,
|
||||
person_profiles: 'identified_only', // or 'always' to create profiles for anonymous users as well
|
||||
});
|
||||
}
|
||||
void loadPostHog();
|
||||
|
||||
if (
|
||||
!isSentryInitialized &&
|
||||
@@ -327,10 +325,6 @@ function App(): JSX.Element {
|
||||
// Kept for the `transaction` tag used in routing, even though
|
||||
// tracing is disabled. Ref: https://github.com/SigNoz/platform-pod/issues/2393#issuecomment-4603658055
|
||||
Sentry.browserTracingIntegration(),
|
||||
Sentry.replayIntegration({
|
||||
maskAllText: false,
|
||||
blockAllMedia: false,
|
||||
}),
|
||||
],
|
||||
tracesSampleRate: 0, // Ref: https://github.com/SigNoz/platform-pod/issues/2393#issuecomment-4603658055
|
||||
replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
|
||||
@@ -369,7 +363,7 @@ function App(): JSX.Element {
|
||||
return null;
|
||||
}
|
||||
|
||||
const sessionReplayUrl = posthog.get_session_replay_url?.({
|
||||
const sessionReplayUrl = getLoadedPostHog()?.get_session_replay_url?.({
|
||||
withTimestamp: true,
|
||||
});
|
||||
if (sessionReplayUrl) {
|
||||
@@ -384,10 +378,14 @@ function App(): JSX.Element {
|
||||
});
|
||||
|
||||
setIsSentryInitialized(true);
|
||||
|
||||
import('lib/analytics/sentryReplay')
|
||||
.then(({ addSentryReplay }) => addSentryReplay())
|
||||
.catch(() => undefined);
|
||||
}
|
||||
} else {
|
||||
posthog.reset();
|
||||
Sentry.close();
|
||||
void resetPostHog();
|
||||
void Sentry.close();
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [isCloudUser, isEnterpriseSelfHostedUser]);
|
||||
|
||||
118
frontend/src/lib/analytics/__tests__/posthog.test.ts
Normal file
118
frontend/src/lib/analytics/__tests__/posthog.test.ts
Normal file
@@ -0,0 +1,118 @@
|
||||
import type { Posthog } from 'types/generated/webSettings';
|
||||
|
||||
const mockInit = jest.fn();
|
||||
const mockIdentify = jest.fn();
|
||||
const mockReset = jest.fn();
|
||||
|
||||
jest.mock('posthog-js', () => ({
|
||||
__esModule: true,
|
||||
default: {
|
||||
init: mockInit,
|
||||
identify: mockIdentify,
|
||||
reset: mockReset,
|
||||
},
|
||||
}));
|
||||
|
||||
const ENABLED: Posthog = {
|
||||
enabled: true,
|
||||
key: 'phc_test',
|
||||
apiHost: 'https://ph.example.com',
|
||||
uiHost: 'https://ui.example.com',
|
||||
};
|
||||
|
||||
function setPostHogSettings(posthog: Posthog): void {
|
||||
window.signozBootData = {
|
||||
settings: {
|
||||
appcues: { enabled: false },
|
||||
posthog,
|
||||
pylon: { enabled: false },
|
||||
sentry: { enabled: false },
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
describe('posthog loader', () => {
|
||||
let loader: typeof import('../posthog');
|
||||
|
||||
beforeEach(async () => {
|
||||
jest.resetModules();
|
||||
loader = await import('../posthog');
|
||||
setPostHogSettings(ENABLED);
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
window.signozBootData = undefined;
|
||||
});
|
||||
|
||||
it.each([
|
||||
['disabled', { ...ENABLED, enabled: false }],
|
||||
['missing a key', { ...ENABLED, key: undefined }],
|
||||
])('never loads posthog-js when it is %s', async (_, settings) => {
|
||||
setPostHogSettings(settings);
|
||||
const callback = jest.fn();
|
||||
|
||||
expect(loader.loadPostHog()).toBeUndefined();
|
||||
await loader.withPostHog(callback);
|
||||
await loader.resetPostHog();
|
||||
|
||||
expect(callback).not.toHaveBeenCalled();
|
||||
expect(mockInit).not.toHaveBeenCalled();
|
||||
expect(mockReset).not.toHaveBeenCalled();
|
||||
expect(loader.getLoadedPostHog()).toBeUndefined();
|
||||
});
|
||||
|
||||
it('initializes once with the boot settings', async () => {
|
||||
const first = loader.loadPostHog();
|
||||
const second = loader.loadPostHog();
|
||||
|
||||
expect(second).toBe(first);
|
||||
await first;
|
||||
|
||||
expect(mockInit).toHaveBeenCalledTimes(1);
|
||||
expect(mockInit).toHaveBeenCalledWith('phc_test', {
|
||||
api_host: 'https://ph.example.com',
|
||||
ui_host: 'https://ui.example.com',
|
||||
person_profiles: 'identified_only',
|
||||
});
|
||||
});
|
||||
|
||||
it('runs a call made before the module loads against the initialized instance', async () => {
|
||||
const identified = loader.withPostHog((posthog) =>
|
||||
posthog.identify('user-1', { role: 'ADMIN' }),
|
||||
);
|
||||
|
||||
expect(mockIdentify).not.toHaveBeenCalled();
|
||||
expect(loader.getLoadedPostHog()).toBeUndefined();
|
||||
|
||||
await loader.loadPostHog();
|
||||
await identified;
|
||||
|
||||
expect(mockIdentify).toHaveBeenCalledTimes(1);
|
||||
expect(mockIdentify).toHaveBeenCalledWith('user-1', { role: 'ADMIN' });
|
||||
expect(mockInit.mock.invocationCallOrder[0]).toBeLessThan(
|
||||
mockIdentify.mock.invocationCallOrder[0],
|
||||
);
|
||||
expect(loader.getLoadedPostHog()).toBeDefined();
|
||||
});
|
||||
|
||||
it('does not reset an instance that was never requested', async () => {
|
||||
await loader.resetPostHog();
|
||||
|
||||
expect(mockReset).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('resets after the pending load finishes', async () => {
|
||||
const loading = loader.loadPostHog();
|
||||
const reset = loader.resetPostHog();
|
||||
|
||||
expect(mockReset).not.toHaveBeenCalled();
|
||||
|
||||
await loading;
|
||||
await reset;
|
||||
|
||||
expect(mockReset).toHaveBeenCalledTimes(1);
|
||||
expect(mockInit.mock.invocationCallOrder[0]).toBeLessThan(
|
||||
mockReset.mock.invocationCallOrder[0],
|
||||
);
|
||||
});
|
||||
});
|
||||
25
frontend/src/lib/analytics/__tests__/sentryReplay.test.ts
Normal file
25
frontend/src/lib/analytics/__tests__/sentryReplay.test.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { addIntegration, replayIntegration } from '@sentry/react';
|
||||
|
||||
import { addSentryReplay } from '../sentryReplay';
|
||||
|
||||
jest.mock('@sentry/react', () => ({
|
||||
addIntegration: jest.fn(),
|
||||
replayIntegration: jest.fn(),
|
||||
}));
|
||||
|
||||
describe('addSentryReplay', () => {
|
||||
it('adds the replay integration with text and media unmasked', () => {
|
||||
const integration = { name: 'Replay' };
|
||||
jest
|
||||
.mocked(replayIntegration)
|
||||
.mockReturnValue(integration as ReturnType<typeof replayIntegration>);
|
||||
|
||||
addSentryReplay();
|
||||
|
||||
expect(replayIntegration).toHaveBeenCalledWith({
|
||||
maskAllText: false,
|
||||
blockAllMedia: false,
|
||||
});
|
||||
expect(addIntegration).toHaveBeenCalledWith(integration);
|
||||
});
|
||||
});
|
||||
43
frontend/src/lib/analytics/posthog.ts
Normal file
43
frontend/src/lib/analytics/posthog.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
import type { PostHog } from 'posthog-js';
|
||||
|
||||
let loading: Promise<PostHog | undefined> | undefined;
|
||||
let loaded: PostHog | undefined;
|
||||
|
||||
export function loadPostHog(): Promise<PostHog | undefined> | undefined {
|
||||
const settings = window.signozBootData?.settings?.posthog;
|
||||
if (!settings?.enabled || !settings.key) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const { key, apiHost, uiHost } = settings;
|
||||
loading ??= import('posthog-js')
|
||||
.then(({ default: posthog }) => {
|
||||
posthog.init(key, {
|
||||
api_host: apiHost,
|
||||
ui_host: uiHost,
|
||||
person_profiles: 'identified_only', // or 'always' to create profiles for anonymous users as well
|
||||
});
|
||||
loaded = posthog;
|
||||
return posthog;
|
||||
})
|
||||
.catch(() => undefined);
|
||||
return loading;
|
||||
}
|
||||
|
||||
export async function withPostHog(
|
||||
callback: (posthog: PostHog) => void,
|
||||
): Promise<void> {
|
||||
const posthog = await loadPostHog();
|
||||
if (posthog) {
|
||||
callback(posthog);
|
||||
}
|
||||
}
|
||||
|
||||
export function getLoadedPostHog(): PostHog | undefined {
|
||||
return loaded;
|
||||
}
|
||||
|
||||
export async function resetPostHog(): Promise<void> {
|
||||
const posthog = await loading;
|
||||
posthog?.reset();
|
||||
}
|
||||
10
frontend/src/lib/analytics/sentryReplay.ts
Normal file
10
frontend/src/lib/analytics/sentryReplay.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { addIntegration, replayIntegration } from '@sentry/react';
|
||||
|
||||
export function addSentryReplay(): void {
|
||||
addIntegration(
|
||||
replayIntegration({
|
||||
maskAllText: false,
|
||||
blockAllMedia: false,
|
||||
}),
|
||||
);
|
||||
}
|
||||
@@ -188,15 +188,6 @@ export default defineConfig(({ mode }): UserConfig => {
|
||||
sourcemap: true,
|
||||
outDir: 'build',
|
||||
cssMinify: 'esbuild',
|
||||
// The Go server caches /assets/ as immutable, so every file there must carry a content hash.
|
||||
assetsDir: 'assets',
|
||||
rolldownOptions: {
|
||||
output: {
|
||||
entryFileNames: 'assets/[name]-[hash].js',
|
||||
chunkFileNames: 'assets/[name]-[hash].js',
|
||||
assetFileNames: 'assets/[name]-[hash].[ext]',
|
||||
},
|
||||
},
|
||||
},
|
||||
server: {
|
||||
open: true,
|
||||
|
||||
@@ -6,9 +6,7 @@ import (
|
||||
"html/template"
|
||||
"net/http"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/SigNoz/signoz/pkg/errors"
|
||||
"github.com/SigNoz/signoz/pkg/factory"
|
||||
@@ -18,11 +16,6 @@ import (
|
||||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
||||
const (
|
||||
assetsPathPrefix = "/assets/"
|
||||
immutableCacheControl = "public, max-age=31536000, immutable"
|
||||
)
|
||||
|
||||
type provider struct {
|
||||
config web.Config
|
||||
indexContents []byte
|
||||
@@ -85,10 +78,10 @@ func (provider *provider) AddToRouter(router *mux.Router) error {
|
||||
|
||||
func (provider *provider) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
|
||||
// Join internally call path.Clean to prevent directory traversal
|
||||
filePath := filepath.Join(provider.config.Directory, req.URL.Path)
|
||||
path := filepath.Join(provider.config.Directory, req.URL.Path)
|
||||
|
||||
// check whether a file exists or is a directory at the given path
|
||||
fi, err := os.Stat(filePath)
|
||||
fi, err := os.Stat(path)
|
||||
if err != nil {
|
||||
// if the file doesn't exist, serve index.html
|
||||
if os.IsNotExist(err) {
|
||||
@@ -108,12 +101,6 @@ func (provider *provider) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
// files under /assets/ are content-hashed, so their URL changes with their content.
|
||||
// A non-canonical URL can name a file outside /assets/ or get a redirect.
|
||||
if req.URL.Path == path.Clean(req.URL.Path) && strings.HasPrefix(req.URL.Path, assetsPathPrefix) {
|
||||
rw.Header().Set("Cache-Control", immutableCacheControl)
|
||||
}
|
||||
|
||||
// otherwise, use http.FileServer to serve the static file
|
||||
provider.fileHandler.ServeHTTP(rw, req)
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ import (
|
||||
"io"
|
||||
"net"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"net/url"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -252,87 +251,3 @@ func TestServeStaticFilesUnchanged(t *testing.T) {
|
||||
|
||||
assert.Equal(t, string(expected), httpGet(t, base+"/assets/style.css"))
|
||||
}
|
||||
|
||||
func TestServeCacheControl(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
directory := t.TempDir()
|
||||
files := map[string]string{
|
||||
"index.html": "<html>index</html>",
|
||||
"assets/x.js": "console.log('x')",
|
||||
"assets/nested/y.css": "body{}",
|
||||
"assets-legacy/z.js": "console.log('z')",
|
||||
"favicon.ico": "icon",
|
||||
"css/uPlot.min.css": ".uplot{}",
|
||||
"locales/en/main.json": "{}",
|
||||
}
|
||||
for name, content := range files {
|
||||
require.NoError(t, os.MkdirAll(filepath.Join(directory, filepath.Dir(name)), 0o755))
|
||||
require.NoError(t, os.WriteFile(filepath.Join(directory, name), []byte(content), 0o644))
|
||||
}
|
||||
|
||||
testCases := []struct {
|
||||
name string
|
||||
basePath string
|
||||
path string
|
||||
expectedStatus int
|
||||
expectedBody string
|
||||
expectedCC string
|
||||
}{
|
||||
{name: "ExistingAsset_Immutable", path: "/assets/x.js", expectedBody: files["assets/x.js"], expectedCC: "public, max-age=31536000, immutable"},
|
||||
{name: "ExistingNestedAsset_Immutable", path: "/assets/nested/y.css", expectedBody: files["assets/nested/y.css"], expectedCC: "public, max-age=31536000, immutable"},
|
||||
{name: "MissingAsset_ServesIndex_NoCache", path: "/assets/missing-AAAA.js", expectedBody: files["index.html"], expectedCC: "max-age=0,no-cache,private,must-revalidate"},
|
||||
{name: "AssetsDirectory_ServesIndex_NoCache", path: "/assets/nested/", expectedBody: files["index.html"], expectedCC: "max-age=0,no-cache,private,must-revalidate"},
|
||||
{name: "Root_ServesIndex_NoCache", path: "/", expectedBody: files["index.html"], expectedCC: "max-age=0,no-cache,private,must-revalidate"},
|
||||
{name: "UnknownRoute_ServesIndex_NoCache", path: "/does-not-exist", expectedBody: files["index.html"], expectedCC: "max-age=0,no-cache,private,must-revalidate"},
|
||||
{name: "NonAssetFile_NoCache", path: "/favicon.ico", expectedBody: files["favicon.ico"], expectedCC: "max-age=0,no-cache,private,must-revalidate"},
|
||||
{name: "NonAssetNestedFile_NoCache", path: "/css/uPlot.min.css", expectedBody: files["css/uPlot.min.css"], expectedCC: "max-age=0,no-cache,private,must-revalidate"},
|
||||
{name: "LocaleFile_NoCache", path: "/locales/en/main.json", expectedBody: files["locales/en/main.json"], expectedCC: "max-age=0,no-cache,private,must-revalidate"},
|
||||
{name: "AssetsPrefixLookalike_NoCache", path: "/assets-legacy/z.js", expectedBody: files["assets-legacy/z.js"], expectedCC: "max-age=0,no-cache,private,must-revalidate"},
|
||||
{name: "BasePath_ExistingAsset_Immutable", basePath: "/signoz", path: "/assets/x.js", expectedBody: files["assets/x.js"], expectedCC: "public, max-age=31536000, immutable"},
|
||||
{name: "BasePath_MissingAsset_ServesIndex_NoCache", basePath: "/signoz", path: "/assets/missing-AAAA.js", expectedBody: files["index.html"], expectedCC: "max-age=0,no-cache,private,must-revalidate"},
|
||||
{name: "BasePath_NonAssetFile_NoCache", basePath: "/signoz", path: "/favicon.ico", expectedBody: files["favicon.ico"], expectedCC: "max-age=0,no-cache,private,must-revalidate"},
|
||||
{name: "AssetTrailingSlash_Redirects_NoCache", path: "/assets/x.js/", expectedStatus: http.StatusMovedPermanently, expectedCC: "max-age=0,no-cache,private,must-revalidate"},
|
||||
{name: "EncodedDotDotOutOfAssets_NoCache", path: "/assets/%2e%2e/locales/en/main.json", expectedBody: files["locales/en/main.json"], expectedCC: "max-age=0,no-cache,private,must-revalidate"},
|
||||
{name: "BasePath_Root_ServesIndex_NoCache", basePath: "/signoz", path: "/", expectedBody: files["index.html"], expectedCC: "max-age=0,no-cache,private,must-revalidate"},
|
||||
}
|
||||
|
||||
for _, testCase := range testCases {
|
||||
t.Run(testCase.name, func(t *testing.T) {
|
||||
routerWeb, err := New(
|
||||
context.Background(),
|
||||
factorytest.NewSettings(),
|
||||
web.Config{Index: "index.html", Directory: directory},
|
||||
global.Config{ExternalURL: &url.URL{Path: testCase.basePath}},
|
||||
)
|
||||
require.NoError(t, err)
|
||||
|
||||
router := mux.NewRouter().UseEncodedPath()
|
||||
require.NoError(t, routerWeb.AddToRouter(router))
|
||||
|
||||
var handler http.Handler = router
|
||||
if testCase.basePath != "" {
|
||||
handler = http.StripPrefix(testCase.basePath, router)
|
||||
}
|
||||
|
||||
server := httptest.NewServer(handler)
|
||||
t.Cleanup(server.Close)
|
||||
|
||||
client := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
|
||||
res, err := client.Get(server.URL + testCase.basePath + testCase.path)
|
||||
require.NoError(t, err)
|
||||
defer func() { _ = res.Body.Close() }()
|
||||
|
||||
body, err := io.ReadAll(res.Body)
|
||||
require.NoError(t, err)
|
||||
|
||||
expectedStatus := testCase.expectedStatus
|
||||
if expectedStatus == 0 {
|
||||
expectedStatus = http.StatusOK
|
||||
}
|
||||
assert.Equal(t, expectedStatus, res.StatusCode)
|
||||
assert.Equal(t, testCase.expectedCC, res.Header.Get("Cache-Control"))
|
||||
assert.Equal(t, testCase.expectedBody, string(body))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user