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

Resource owner now shown in every pane #7489

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marcosdiez
Copy link
Contributor

@marcosdiez marcosdiez commented Sep 29, 2022

This is a duplicate of #6237

image

I am not sure if this is useful anywhere but in a ReplicaSet and in a Job started by a CronJob Also, we have the "problem" of having the info shown twice in Pods.

@floreks , my team and I use this every day. It's quite useful. Consider merging, please!

This PR can be tested using the following containers:

  • marcosdiez/dashboard-api:v2.7.0.b
  • marcosdiez/dashboard-web:v2.7.0.b

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: marcosdiez
Once this PR has been reviewed and has the lgtm label, please assign shu-mutou for approval by writing /assign @shu-mutou in a comment. For more information see:The Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 29, 2022
@maciaszczykm
Copy link
Member

@marcosdiez CI doesn't pass.

What do you mean by duplicate?

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 30, 2022
@codecov
Copy link

codecov bot commented Sep 30, 2022

Codecov Report

Merging #7489 (95a06ec) into master (6e3ef1f) will decrease coverage by 0.16%.
Report is 726 commits behind head on master.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7489      +/-   ##
==========================================
- Coverage   42.10%   41.94%   -0.16%     
==========================================
  Files         217      163      -54     
  Lines       12084    10845    -1239     
  Branches      179        0     -179     
==========================================
- Hits         5088     4549     -539     
+ Misses       6711     6049     -662     
+ Partials      285      247      -38     

@marcosdiez
Copy link
Contributor Author

Hi @maciaszczykm

I'll get all the tests passed soon. Sorry for the inconvenient.

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. language/de Updates or issues for German translations. language/fr Updates or issues for French translations. language/ja Updates or issues for Japanese translations. language/ko Updates or issues for Korean translations. language/zh Updates or issues for Chinese translations. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 9, 2022
@marcosdiez
Copy link
Contributor Author

marcosdiez commented Oct 9, 2022

@floreks @maciaszczykm do you guys know why the tests are failing ?
the quick way to reproduce it is to type yarn test src/resource/discovery/ingress/detail/component.spec.ts

The issue is caused by this line:

The part that the above line has an issue with is this one:

https://github.com/marcosdiez/dashboard/blob/704c1e10b4e499e5dd9fa6e14f59bf0026ea826c/modules/web/src/common/components/objectmeta/component.ts#L29

but I am having trouble understanding why. Suggestions are welcome. Thank you!

@@ -23,6 +26,8 @@ export class ObjectMetaComponent {
@Input() initialized = false;

private objectMeta_: ObjectMeta;
private readonly kdState_: KdStateService = GlobalServicesModule.injector.get(KdStateService);
Copy link
Member

Choose a reason for hiding this comment

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

Why not using constructor for that?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@maciaszczykm I tried

  private readonly kdState_: KdStateService;

  constructor() {
    this.kdState_ = GlobalServicesModule.injector.get(KdStateService);
  }

and it fails just like without the constructor.

mdiez@batman:~/code/dashboard/modules/web$ yarn test src/resource/discovery/ingress/detail/component.spec.ts
 FAIL  src/resource/discovery/ingress/detail/component.spec.ts
  ● Test suite failed to run

    src/common/services/pluginloader/clientloader.service.ts:21:25 - error TS2339: Property 'System' does not exist on type 'Window & typeof globalThis'.

    21 const systemJS = window.System;
                               ~~~~~~
    src/common/services/pluginloader/clientloader.service.ts:31:14 - error TS2339: Property 'define' does not exist on type 'Window & typeof globalThis'.

    31       window.define(externalKey, [], () => {
                    ~~~~~~
    src/common/services/pluginloader/clientloader.service.ts:51:52 - error TS7006: Parameter 'm' implicitly has an 'any' type.

    51       return systemJS.import(dependency.path).then(m => {
                                                          ~
    src/common/services/pluginloader/clientloader.service.ts:52:16 - error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.

    52         window['define'](dep, [], () => m.default);
                      ~~~~~~~~
    src/common/services/pluginloader/clientloader.service.ts:57:48 - error TS7006: Parameter 'module' implicitly has an 'any' type.

    57       return systemJS.import(plugin.path).then(module => module.default.default);
                                                      ~~~~~~

Test Suites: 1 failed, 1 total

I am out of ideas. I'll try again next week.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@maciaszczykm it did not work either :(

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@maciaszczykm I still need help here ....

Copy link
Member

Choose a reason for hiding this comment

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

@marcosdiez Sorry, I do not have time this and perhaps next month to work on the project. Once I will find some I will take a look on it.

@maciaszczykm maciaszczykm self-assigned this Jan 17, 2023
@maciaszczykm maciaszczykm removed their assignment Jun 2, 2023
@marcosdiez
Copy link
Contributor Author

/remove-lifecycle stale

@@ -930,6 +930,10 @@
<source>unset</source>
<target>non défini</target>
</trans-unit>
<trans-unit id="3715596725146409911" datatype="html">
<source>Owner</source>
<target state="new">Owner</target>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<target state="new">Owner</target>
<target state="new">Propriétaire</target>

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 22, 2024
@marcosdiez
Copy link
Contributor Author

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 22, 2024
@marcosdiez
Copy link
Contributor Author

/remove-lifecycle stale

@marcosdiez
Copy link
Contributor Author

@maciaszczykm hi. could we merge my PR sometime this year ?

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 27, 2024
@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/de Updates or issues for German translations. language/fr Updates or issues for French translations. language/ja Updates or issues for Japanese translations. language/ko Updates or issues for Korean translations. language/zh Updates or issues for Chinese translations. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants