Skip to content

Conversation

@yakutovicha
Copy link
Member

@yakutovicha yakutovicha commented Dec 4, 2025

fixes #719

related to aiidalab/aiidalab-home#211

@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.27%. Comparing base (7a1ec99) to head (e1bf1be).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #720   +/-   ##
=======================================
  Coverage   84.27%   84.27%           
=======================================
  Files          18       18           
  Lines        3581     3581           
=======================================
  Hits         3018     3018           
  Misses        563      563           
Flag Coverage Δ
python-3.11 84.25% <100.00%> (ø)
python-3.9 84.28% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@yakutovicha yakutovicha changed the title Remove notebooks Remove process notebooks Dec 5, 2025
Copy link
Contributor

@danielhollas danielhollas left a comment

Choose a reason for hiding this comment

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

Thanks, code looks good, but please don't merge yet before we release 2.6 and before we have a chance to discuss a bit more about the coupling between AWB and home app (which I think we should avoid if possible, let's discuss over at aiidalab-home repo)

if self.append_output:
self.submit_out.value += f"""Submitted process {self.process}. Click
<a href={self.path_to_root}aiidalab-widgets-base/notebooks/process.ipynb?id={self.process.pk}
<a href={self.path_to_root}home/process.ipynb?id={self.process.pk}
Copy link
Contributor

Choose a reason for hiding this comment

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

This new coupling the the home app is unfortunate :-( Seems very brittle.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thinking about this a bit more, I feel somewhat strongly that we should not link to the home app like this from individual widgets.

At least for the case of SubmitButtonWidget, should we just remove this link altogether? @edan-bainglass I am not sure if QeApp depends on this widget or if it has its own thing?

Copy link
Member

@edan-bainglass edan-bainglass Dec 20, 2025

Choose a reason for hiding this comment

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

We do not use this widget on the app. We have our own submission logic. I'm not familiar with this widget, but indeed, AWB widgets probably shouldn't have hard links. Instead, if we want to keep a link feature (not a bad idea), the link should be injected into the widget.

@yakutovicha
Copy link
Member Author

let's discuss over at aiidalab-home repo

Yes, made an issue aiidalab/aiidalab-home#212, please share your arguments.

Copy link
Contributor

@danielhollas danielhollas left a comment

Choose a reason for hiding this comment

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

Some more thoughts about the links to the notebooks moved to home app.
This can also be deferred for future PR, but we should definitely think about this a bit more before the final AWB 3.0 release (e.g. do we want to perhaps get rid of some of the widgets if they are gonna live in the home app?).

if self.append_output:
self.submit_out.value += f"""Submitted process {self.process}. Click
<a href={self.path_to_root}aiidalab-widgets-base/notebooks/process.ipynb?id={self.process.pk}
<a href={self.path_to_root}home/process.ipynb?id={self.process.pk}
Copy link
Contributor

Choose a reason for hiding this comment

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

Thinking about this a bit more, I feel somewhat strongly that we should not link to the home app like this from individual widgets.

At least for the case of SubmitButtonWidget, should we just remove this link altogether? @edan-bainglass I am not sure if QeApp depends on this widget or if it has its own thing?


process_state = node.process_state.value.capitalize()
pk = f"""<a#space#href={self.path_to_root}aiidalab-widgets-base/notebooks/process.ipynb?id={node.pk}#space#target="_blank">{node.pk}</a>"""
pk = f"""<a#space#href={self.path_to_root}home/process.ipynb?id={node.pk}#space#target="_blank">{node.pk}</a>"""
Copy link
Contributor

Choose a reason for hiding this comment

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

Here again, should we just remove the link?

Copy link
Member

@edan-bainglass edan-bainglass Dec 20, 2025

Choose a reason for hiding this comment

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

Let the client inject a link on widget instantiation if they wish.

# Add HTML links.
dataf["PK"] = dataf["PK"].apply(
lambda x: f"""<a href={self.path_to_root}aiidalab-widgets-base/notebooks/process.ipynb?id={x} target="_blank">{x}</a>"""
lambda x: f"""<a href={self.path_to_root}home/process.ipynb?id={x} target="_blank">{x}</a>"""
Copy link
Contributor

Choose a reason for hiding this comment

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

This is in ProcessList widget. Crazy idea, but since we're bumping major version, do we even want ProcessList widget as part of AWB, if we make its functionality part of home app? (that would partly of "resolve" the vendoring problem since the code would just live in the home app.

Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure where and how we use the widget, but in principle, I would say all these core AiiDA operations will be provided via the AiiDA GUI in JS. I foresee this integrated by March!

Copy link
Member

@edan-bainglass edan-bainglass left a comment

Choose a reason for hiding this comment

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

Thanks @yakutovicha . LGTM! Regarding the links, let's allow the user to inject them via widget constructors as to avoid hard wiring them, to home app or any other place. Happy to discuss 🙂

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.

Remove process notebooks from AWB

4 participants