You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "scottyaslan (via GitHub)" <gi...@apache.org> on 2025/07/11 14:05:28 UTC
Re: [PR] NIFI-14319: Create initial project structure for new NiFi Registry UI [nifi]
scottyaslan commented on code in PR #9855:
URL: https://github.com/apache/nifi/pull/9855#discussion_r2162728042
##########
nifi-frontend/src/main/frontend/apps/nifi-registry/src/app/service/current-user.service.ts:
##########
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { Injectable } from '@angular/core';
+import { Observable } from 'rxjs';
+import { HttpClient } from '@angular/common/http';
+
+@Injectable({ providedIn: 'root' })
+export class CurrentUserService {
+ private static readonly API: string = '../nifi-registry-api';
+
+ constructor(private httpClient: HttpClient) {}
+
+ getUser(): Observable<any> {
Review Comment:
Can we do better than `Observable<any>` here? It would be better if we had some types defined.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org