Commit Graph

30 Commits

Author SHA1 Message Date
Juan David Martínez Cubillos 261a47d119
DEV: Temporarily revert prioritize_username_in_ux for prioritize_full_name_in_ux (#656) 2025-04-10 13:44:55 -05:00
Loïc Guitaut d8888c4589
DEV: Add system spec to check core features are working fine (#653) 2025-04-09 14:20:36 +02:00
Martin Brennan a3ce637f49
DEV: Tweak has_content? check (#654)
https://github.com/discourse/discourse/pull/32145 in core
changes the mentions a bit and introduces inline-flex,
which means that part of the content is not visible according
to capybara. Checking for `:all` fixes this.
2025-04-04 12:14:14 +10:00
Alan Guo Xiang Tan 586b66dc74
DEV: Skip broken tests for now. (#646)
Tests are constantly failing when run against the `main` branch of
`discourse/discourse`.
2025-03-17 13:44:24 +08:00
Juan David Martínez Cubillos 0437516309
FIX: Incorrect ussage of prioritize_full_name_in_ux replaced by prioritize_username_in_ux (#645)
* FIX: Incorrect usssage of prioritize_full_name_in_ux replaced by prioritize_username_in_ux

* fixed failing test
2025-03-14 19:09:43 -05:00
benj ec8a785df9
FIX: Ensure assign plugin respects `prioritize_full_name_in_ux` site setting (#632)
* WIP

* more messing around

* undos, notes to self

* WIP notes

* completed logic and added tests for existing  code and implemented code

* fixed failing tests

* fixed failing tests

* added suggested changes

* added suggested changes

* fix merge

* fix linting issues

* possible flaky test

* removed comment

* further user name display changes

* implemented suggested change

* fixed bug in small action post when assigning or unassigning

* fixed breaking tests

* refactored test

---------

Co-authored-by: Juan David Martinez <juan@discourse.org>
2025-03-14 18:08:28 -05:00
Alan Guo Xiang Tan 3b1ffefbe4
DEV: Remove code that is not necessary (#643)
Calling `expand_if_needed` is not necessary here.
2025-03-14 16:13:58 +08:00
Régis Hanol 8c52b9a31c
FEATURE: new "notification level when assigned" user preference (#626)
This adds a new user preference allowed users to control how the
notification level of the topic they're assigned to changes.

Internal ref - t/141162
2025-01-16 17:59:16 +01:00
Joffrey JAFFEUX 7dd33d299d
DEV: ensure bulk action is done before checking for result (#602)
We were sometimes visiting latest before the request happens, the solution is to wait for the modal to have automatically closed as it indicates the request has finished and the state should be the one we expect.
2024-11-12 07:45:02 +09:00
Martin Brennan cef88078dd
DEV: Fixup bulk assigment specs (#582)
Followup e5776714c2
2024-07-23 15:04:36 +10:00
Martin Brennan e5776714c2
DEV: Use new topic bulk action functionality for everything (#581)
The PR https://github.com/discourse/discourse/pull/28003 in core
removes the experimental status of new topic bulk actions, we
can now use it for everything from now on. After this and the
core PR is merged we can reintroduce the specs.
2024-07-22 15:42:57 +10:00
Joffrey JAFFEUX dca24fa6fa
FIX: ensures topics can be bulk assigned on group page (#580)
Since a previous refactor the bulkSelectHelper was not correctly passed in the custom topic list page of this plugin.

A spec has also been added.
2024-07-19 18:49:35 +02:00
Joffrey JAFFEUX 5e75baa5f6
FIX: uses the new <DropdownMenu /> component (#569) 2024-05-08 09:08:30 +02:00
Joffrey JAFFEUX cbf3f3a908
FIX: ensures ctrl+enter from textarea saves (#566) 2024-04-24 15:54:38 +02:00
Joffrey JAFFEUX 3507a7dd98
FIX: correctly refresh UI when changing group preference (#560)
Prior to this fix the state change was not reflected in the UI when changing the "who can assign" preference of a group.

This was actually saved in the backend but would require a full page refresh to see the updated state on the group preferences page.
2024-04-05 18:46:08 +02:00
Blake Erickson ed059d3dfe
DEV: Changes for new bulk action dropdown modal (#553)
When the new bulk actions dropdown is enabled use a new component for bulk assigning.

Co-authored-by: Martin Brennan <martin@discourse.org>
2024-03-25 15:13:36 -06:00
Loïc Guitaut c33297316a
DEV: Fix new Rubocop offenses (#548) 2024-02-29 18:23:48 +01:00
Alan Guo Xiang Tan 56b0de3896
DEV: Remove `capture_logs: true` metadata (#547)
Why this change?

We believe we have figured out the problem and not longer need the debugging information.
2024-02-22 20:09:22 +08:00
Alan Guo Xiang Tan 87e74f7948
DEV: Capture logs for all tests in `spec/system/assign_topic_spec.rb` (#542)
Why this change?

We have been getting flaky test failures from these specs and the
failure screenshot shows that the user is not logged in when it is
supposed to be. Futher investigation shows that when the test flakes, it
is because the request to view the topic is using an auth token that is
different from the one which was created when the user was signed in.

What does this change do?

1. Add the `capture_log` metadata to all the tests in this file.

2. Enables the `verbose_auth_token_logging` site setting to give us more
   debugging information in the logs.
2024-01-04 11:18:53 +08:00
Alan Guo Xiang Tan 4ac3f02b39
DEV: Unskip flaky tests and capture logs (#541)
Why this change?

The tests are supposedly flaky but we are unskipping them and capturing
logs to figure out why.
2024-01-03 13:11:03 +08:00
Alan Guo Xiang Tan 1f24dca1cc
DEV: Fix flaky system tests (#540)
Why this change?

The spec is flaky and it seems to be DB transaction related where after
signing in as a user, the failure screenshot shows that the user has not
been signed in.

What does this change do?

Set `capture_log: true` which will log all ActiveRecord DB statements
execute while running the spec.
2024-01-02 07:37:44 +08:00
David Taylor da20a2bf53
DEV: Update tests for core change (#525)
https://github.com/discourse/discourse/pull/23967
2023-11-15 09:23:36 +00:00
Loïc Guitaut 5055bcbb2c FIX: Order items properly in user menu
The recent changes to the user menu changed how we were ordering the
items in it. A small bug was noticed though, as we’re not displaying the
unread assignments at the very top.

This patch fixes the ordering like this:

- Unread individual assignment notifications
- Unread group assignment notifications
- Read individual assignments
- Read group assignments

In each group of items, they are sorted by date, the most recent ones
being at the top.
2023-11-09 16:41:48 +01:00
Jarek Radosz e9c7cb5c3f
DEV: Skip a flaky spec (#508) 2023-09-12 07:43:24 +08:00
Joffrey JAFFEUX 8f04d82ae7
DEV: skip flakey spec (#495)
We already tried to make this spec more reliable in eb3b97b834 but that didn't work out.

https://github.com/discourse/discourse/actions/runs/5694495045/job/15435791690?pr=22860
2023-07-28 19:31:55 +02:00
Alan Guo Xiang Tan eb3b97b834
DEV: Try to make system tests more stable (#492)
Why this change?

We have been seeing tests failures due to errors like

```
Capybara::ElementNotFound:
  Unable to find css "#topic-footer-button-assign"
```

when running our system tests in CI. However, I can't quite figure out
why that is happening and have invested way too much time to do so.
Therefore, I'm trying to fix this by closing a topic via the topic
timeline controls instead of the footer button instead.
2023-07-12 08:31:24 +08:00
Martin Brennan 7d9207a275
DEV: Try fix flaky spec (#485)
For some reason sometimes clicking the admin wrench doesn't work
2023-07-05 12:10:48 +10:00
Kris e724a7ee69
UX: class for small posts when assigns are private (#400)
The goal is to add a class so when assigns are not public, their descriptions can be styled similar to whispers... this is a light way to reassure admins of assign message visibility.
2023-02-02 15:11:53 +08:00
Jan Cernik a7df68b9c2
FIX: System tests failing due to assignee chooser (#430)
Since now the assignee chooser opens automatically, clicking on it was causing it to close
2023-01-17 09:55:21 -03:00
Jan Cernik 896d0e3445
FIX: Broken posts when assigning a closed topic (#425)
The previous behavior was:
1. Assign a topic to someone
2. Close the topic with the setting unassign_on_close enabled
3. Assign the topic to the same user as before

This caused small broken or empty posts to be displayed.

This commit also introduces system specs
2023-01-17 08:09:35 -03:00