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

Iroh dynamic tool Installation #44

Open
wants to merge 2 commits into
base: f24
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,25 @@ const path = require('path');

const file = require('./src/file');

const Iroh = require('iroh');
let stage = new Iroh.Stage(`
function example() {
console.log("Hello from Iroh tracking!");
}
example();
`);

stage.addListener(Iroh.CALL).on("before", (e) => {
console.log("Calling function:", e.name);
});

eval(stage.script);

nconf.argv().env({
separator: '__',
});


process.env.NODE_ENV = process.env.NODE_ENV || 'production';
global.env = process.env.NODE_ENV || 'production';

Expand Down
Binary file added dump.rdb
Binary file not shown.
29 changes: 29 additions & 0 deletions userGuide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
To test the scheduled reply feature I’ve been working on, you can start by going to the quick reply section of a topic. There, you’ll notice a new date and time input field just above the submit button. After typing your reply, you can select a specific date and time for the post to go live, then click submit. Right now, the frontend is fully implemented, so this interaction will feel complete. However, the backend portion isn’t fully functional yet, so while you can schedule a reply visually, it won’t actually be posted at the set time. The feature can still be tested to ensure the date-picker works smoothly and submits the form with the chosen timestamp, but it won’t yet execute the timed functionality.

How to test role displays:
⁃ Run ./nodebb build tpl
⁃ Navigate to “General Discussion”
⁃ Create a new topic to see your role next to your username
⁃ Go into the topic and make a reply
⁃ Refresh the page to view your role next to the comment
Automated testing for role display:
⁃ Test added to test/topics/events.js to ensure correct role assignment to each topic.
⁃ Run test with npm run test


How to test role displays:
⁃ Run ./nodebb build posts.jsavigate to “General Discussion”
⁃ Create a new topic or go into an existing topic
⁃ Either make a reply or on an existing reply, hover over the reply
⁃ Click on the three dots to show the drop down
⁃ Press the endorse button
⁃ Refresh the page to view the star/endorsement badge next to your chosen reply
Automated testing for role display:
⁃ Test added to test/posts.js to ensure correct assignment for the endorsement field by the backend API calls ⁃ Run test with npm run test


The status of the question is showed next the the question (resolved / unresolved). At the start of the question, there is a toggle button that can switch the question between "resolved" and "unresolved".
There is issue with the backend structure for storing data and accurately retrieve the status.
Run ./nodebb build tplNavigate to any question post.If a new topic is created it is default to "unresolved"After topic is posted, user can toggle between resolved and unresolved.

To test the user anonymity feature, you can run the nodebb instance and then click on General Announcements, click on an existing topic, and scroll to the bottom. There, you will see a quickreply option at the bottom. Type a message of 8 or more characters and then click the submit as an anonymous checkbox. Then click Submit. You should see that the reply is anonymous. Then try toggling the checkbox again to not be anonymous and reply. You will see it is not anonymous. To further test it, you can reply to the anonymous reply that you created and you will see the user handle does not auto-generate in that reply since it is anonymous. To run the test suite, just run `npm run test.` The test I’ve provided is sufficient because it directly checks that an anonymous user object is correctly set up with the expected `uid` of `0` (indicating anonymity) and the correct `handle` (`'AnonymousUser'`). It verifies basic functionality related to anonymous user handling without interacting with more complex, potentially problematic areas like posting or privileges, ensuring a focused and reliable test.
Loading