Group8_GOAT_666 — Alpha Sprint Essay 4 (November 27–28)

GOAT_666 GOAT_666 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

Group8 GOAT_666 Sprint Log 4

ShanHai Travel final Alpha Sprint checkpoint
November 27–28, 2026 | Asia/Shanghai

Assignment informationDetails
CourseMIEC EE308FZ Software Engineering, FZU–MU
AssignmentFifth Assignment — Alpha Sprint
ProjectShanHai Travel, a course travel platform for browsing destinations, publishing travel stories and making simulated bookings
Team and repositoryGOAT_666 · ShanHai Travel source repository
Checkpoint contributor彭启航
Checkpoint and releaseDays 7–8 of the November 21–28 sprint · Ver 4.0 codebase · acceptance commit a550c1f
Previous checkpointSprint Essay 3

1. Where the checkpoint stands

On Day 4, ShanHai Travel could write orders, favorites and comments to MySQL. By Day 6, booking, the profile center, publishing and the administration screens had been connected to the application. The last two days asked a different question. Could a reviewer start the release from its package and recover the same order after a lost reply? Could a traveler finish mock payment on the public site and still find the refund after signing in again?

The release candidate answered that question in two environments. The Windows integration smoke run passed 44 of 44 checks. The public course deployment on Alibaba Cloud ECS loaded all 13 HTML entry points, accepted a synthetic booking and returned the refund after a new login. A database backup was also restored to a disposable schema.

The release identifier is a550c1f. The supplied working folder used a Ver 4.1 label, while the repository README identifies the product as Ver 4.0. The commit identifies the build used in this report. The running stack is Node.js, Express, MySQL and plain HTML, CSS and JavaScript. The deployed copy removes the login demo-account controls and autofill.

2. Turning the release goal into testable claims

Day 6 left 12 story points in the original backlog. The final block covered documentation, startup, a visual pass, clean-environment acceptance and packaging. Release acceptance also followed risks found during closeout, especially interrupted checkout, incorrect pricing, unsafe initialization and database recovery. I used four checks to decide what the final candidate could demonstrate.

  1. A booking survives a lost reply. Retry the same checkout and recover the existing order. Calculate the amount from the catalog on the server, persist the simulated refund and read the result after a new login.
  2. Privileges hold at the API. An anonymous caller receives 401 at the admin overview. A signed-in standard user receives 403. An authorized operator can open the overview, and ordinary users can work with their own records.
  3. The release can be started and reached. A new Windows directory and an empty local database can run the candidate from the package. A public workstation can reach the ECS app over verified HTTPS and read its database-backed health response.
  4. State can be recovered. An application restart keeps database and upload state available. A separate restore schema can read the backup independently of the live application schema.

3. Burn-up at the Day 8 checkpoint

The original backlog contains 35 issues and 120 story points. Its checkpoints were 46, 82, 108 and 120 SP on Days 2, 4, 6 and 8. The final move from 108 to 120 SP is the original closeout block. The cloud checks, smoke assertions and follow-up ideas below have their own evidence and carry no new story points in this report.

img

Figure 1. Historical sprint burn-up from the repository. The line records the original course backlog at its four checkpoints.

4. What changed and how I checked it

4.1 From the public homepage to a bookable destination

I opened the release homepage over pinned HTTPS and loaded the destination catalog at desktop and phone widths. I followed the first catalog link and reached the Dali detail page. This exercised the existing browse-to-book path after the rollout. The workstation acceptance separately counted 13 public HTML entry points and 9 destinations returned by the catalog API.

img

Figure 2. The public homepage rendered over pinned HTTPS.

img

Figure 3. The public catalog loaded at 1440 CSS pixels. The first destination link leads to the detail page in Figure 5.

img

Figure 4. The same catalog at 375 CSS pixels on the same workstation.

img

Figure 5. Following the first catalog link opened the Dali detail page and its booking entry.

Figure 5 also shows the date field on the destination-detail page. The date correction in this checkpoint applies to the booking wizard, where the selected dates determine the price and refund eligibility.

4.2 Booking dates and server-side pricing

The booking wizard had a fixed default date. The old backend took browser-supplied prices, could drop the early-bird discount and matched hotels against a destination label with a suffix. I updated the wizard to derive dates from the Shanghai calendar and refresh room prices when the stay or room count changes. The browser now submits item identifiers and booking quantities. The server resolves eligible items and prices, applies the discount, and writes the order and its line items in one transaction.

In the public wizard I selected the three-days-ahead option and checked the dates, room choices and refund preview. The local smoke test checked the calculation separately. Its two-room, three-night case verified an upgrade fee of six times the nightly difference. It also checked the early-bird discount and saved total against the server calculation.

img

Figure 6. Selecting the three-days-ahead option updated the dates and refund preview in the public booking wizard.

4.3 Order replay and simulated payment

A retry could create a second order after the first create request had already been committed. I added a stable requestKey in the booking page and scoped the server lookup to the signed-in account. The API compares the booking data, and a database uniqueness constraint backs the account-and-key rule. An unchanged replay returns the original order. A changed request under the same key returns HTTP 409.

Acceptance operationObserved result
Drop the create reply after the server processes it, then retry in the same tabThe retry recovered the original pending order and continued to checkout success.
Drop the simulated payment reply after the server processes it, then retryThe retry recovered the original paid order and opened the success dialog.
Submit the same keyed booking concurrently, then reuse its key with changed dataThe identical requests returned one order. The changed request returned 409. A second account could use the same key for its own order.
Send two simulated payments to one orderOne succeeded and one returned 409. The successful method was the one saved.

The interrupted responses were exercised in the local Edge run recorded in test-evidence/ui/checkout-retry.json. The concurrent requests were exercised in local API smoke. To capture the ordinary public flow, I continued from the traveler form to payment review, submitted mock payment and saw the paid confirmation. The response recorded mock: true.

img

Figure 7. After continuing from traveler details, the public review showed a CNY 2,560 total and the simulated payment action.

img

Figure 8. Submitting simulated payment opened the paid confirmation. The order identifier is masked.

4.4 Refund persists after a new sign-in

Cancellation previously changed the order state without saving the calculated amount. I added server-side calculation from the Shanghai date boundary and saved the simulated refund with the state change. A pending order can be cancelled. Cancelling an eligible paid order records it as refunded. Historical refunds with a missing amount retain that missing value.

Days before check-inExpected simulated refundReadback from the CNY 1,280 local fixtures
Same day0%CNY 0 at zero days
One or two days50%CNY 640 at one day
Three days or more100%CNY 1,280 at three days

I opened My Orders on ECS for a paid synthetic booking, requested cancellation, then signed out and signed back in. Figure 9 shows that order’s refunded status and its CNY 2,560 simulated refund. Figures 7–8 were captured during an equivalent checkout. The archived CNY 1,280 public workstation refund came from another booking. The three local fixtures in the table were read back across sessions in refund-tiers.json and prior-session-orders.json.

img

Figure 9. My Orders after a new public sign-in showed refunded status and the saved CNY 2,560 simulated refund.

4.5 Travel story draft, publish and upload

The old publish link omitted the content type, so a guide and a story sharing a numeric ID could lead to the wrong record. I changed the linking and lookup to use the story type and its ID. In the isolated Windows instance I saved a story as a draft, changed its title, published it and opened it from the confirmation. The two images show the save and readback stages.

img

Figure 10. After Save Draft, the local editor showed that the draft had been saved to the database.

img

Figure 11. The local publish confirmation link opened the story with its edited title and body. The fixture was removed after capture.

I also added image extension, MIME and file signature checks, generated filenames and limits of nine images per upload and 5 MB per image. Local smoke uploaded a PNG and compared its bytes with the downloaded copy, then confirmed rejection of a text fixture. The ECS restart test separately exercised file persistence. The API and restart records contain these upload results. Figures 10–11 show the publishing path.

4.6 Dashboard counts and time ranges

The old analytics path could miss direct HTML visits, and its cutoff could add an extra day. I recorded actual HTML requests with a source tag, kept seeded demo visits identifiable and preserved a legacy category for older rows with an unknown source. Local verification changed the range to 7, 30 and 90 days and checked that the API returned that number of daily points. On ECS I selected 90 days and checked the chart and its note about demo visits and simulated amounts.

img

Figure 12. Selecting 90 days on the public dashboard updated the range and displayed the data-source note.

4.7 Administration and role checks

I opened the public admin overview endpoint with no session, then with a signed-in standard account. The first call returned 401. The second returned 403 because the account had a valid session but lacked the admin role. The restart record separately documents the authorized operator's successful overview before and after the web-service restart.

img

Figure 13. An anonymous request to the public admin overview API returned HTTP 401.

img

Figure 14. A signed-in standard account received HTTP 403 from the same endpoint.

Local B-06 regression covered writing an unsupported account status, banning the fixture and reactivating it. The unsupported status returned 400 and left the fixture active. Banning blocked its existing session and password login. Reactivating it allowed a new login. Notice and destination changes were checked by creating records, editing them, taking them offline and checking public visibility before deletion. A destination with a linked order returned 409 on deletion and kept that relationship. For the responsive admin correction, I checked five table panels at 375, 768 and 1280 pixels after moving horizontal scrolling inside the tables.

5. Windows startup and clean package acceptance

A failed database check could fall through to initialization in the old startup path. I made the launcher stop on a failed check and confined initialization to empty, non-production databases. Repeatable database changes use the migration script. The launcher now checks the configured port for a valid ShanHai health response before reusing the process.

OperationObserved result
Start from a Windows path with spaces, then launch again on the configured portThe first launch reported MySQL up. The second reused the application process.
Start when a different service already occupies the configured portThe launcher reported the conflict and left the other service running.
Supply an invalid JWT setting, out-of-range app port or incorrect MySQL portThe launcher stopped with a distinct error for each cause.
Extract to a fresh directory, install from the lockfile, initialize an empty database and rerun migrationThe candidate started and reported ready, with 17 tables and 9 destinations.

The raw records are launcher-verification.md and test-evidence/package-a550c1f.txt.

6. Code check-in records

6.1 Uploaded check-ins

On November 28, four check-ins were uploaded to sprint-log-4-acceptance. Git lists 彭启航 as both author and committer on all four. Dates below use Asia/Shanghai time. Issue numbers refer to the original sprint backlog.

CommitDate and timeSubjectRelated issues
fbcc4912026-11-28 15:00:29fix: harden configuration and verify booking and publishing flows#12–15, #20–24, #31, #34
f0440862026-11-28 15:00:30docs: record isolated browser acceptance for Sprint Log 4#32, #35
09721642026-11-28 15:00:31fix: recover interrupted bookings and verify admin and Windows startup flows#12, #14, #20, #21, #23, #31, #34
8c4bad82026-11-28 15:00:31docs: summarize candidate verification and cross-session refunds#32, #35

6.2 Changes and verification by issue

The two fix commits touched 42 and 13 files respectively. Each documentation commit changed one file. The branch differs from its base in 44 files overall because some files changed more than once.

Work and related issuesOwnerCheck-in and filesHow the change was checked
Price, dates, refund and replay · #12, #20, #21彭启航fbcc491, 0972164 · backend/src/routes/booking.js, database/schema.sql, frontend/js/page-booking.jsDate and payment steps in Figures 6–8, signed-in refund in Figure 9, local replay and pricing assertions
Story links and upload validation · #13, #22彭启航fbcc491 · backend/src/routes/social.js, upload.js, frontend/js/page-publish.js, frontend/guide-detail.htmlFigures 10–11, PNG byte comparison and rejected text upload
Admin access, account state and dashboard · #14, #15, #23, #24彭启航fbcc491, 0972164 · backend/src/routes/admin.js, backend/src/app.js, frontend/admin.html, frontend/insights.htmlFigures 12–14, B-06, linked-destination deletion check and range assertions
Initialization, migration and launcher · #31, #34彭启航fbcc491, 0972164 · scripts/init-db.js, scripts/migrate-db.js, scripts/start-local.batStartup, reuse, blocked port and clean extraction in Section 5
Browser acceptance evidence · #32, #35彭启航f044086 · docs/sprint/ui-verification.mdRecords Chrome checks at 375 and 1280 CSS pixels and the evidence available for each historical defect.
Candidate verification record · #32, #35彭启航8c4bad8 · docs/sprint/log-4-candidate-verification.mdDocuments the candidate package checks and refund readback after a fresh sign-in (Figure 9).

img

Figure 15. Local acceptance history. The corresponding public check-ins are d564d75 → fbcc491, a550c1f → 0972164 and 0011a73 → 8c4bad8.

The original course documentation check-in remains in the repository history. Historical release check-in

7. Verification at this checkpoint

Verification groupObserved result and evidence
Local API integration44 passed, 0 failed, on November 28 in Windows PowerShell 5.1 against a loopback instance and a disposable MySQL test database. api-smoke-integration.txt records the final total.
Local browser and startupEdge covered 13 pages across three widths, with 39 initial HTTP 200 responses. A separate local run exercised interrupted checkout. Launcher checks covered startup from a path with spaces, process reuse and failure cases.
Public workstation APITLS 1.3 and the IP subject alternative name were verified. All 13 HTML entry points loaded and the catalog returned 9 destinations. A synthetic user replayed the same order, made a mock payment and read back a CNY 1,280 simulated refund after signing in again. The admin guard returned 401 and 403 as appropriate.
Public browser and restartEdge loaded the first six destination links at 375 and 1280 pixels without horizontal document overflow or page script errors in the recorded run. The authorized admin overview remained available across a web-service restart, and a test PNG returned identical bytes before and after.
Restore and packagingThe ECS drill read all 17 tables in a disposable schema. The Windows candidate also started from a fresh extracted directory and an empty database, with 17 tables and 9 destinations after setup.

The original sprint test report records 43/43 for its historical suite. Its figure belongs to the earlier course report. The final 44/44 result is the later local integration run. The 13 public pages count HTML entry points, including restricted pages whose access is enforced separately. Access checks for restricted pages are recorded in Section 4.7.

From the package source directory, the integration command was run with PowerShell continued lines as shown below. It uses a seeded disposable database and upload directory on loopback. The admin checks require the restricted test credentials to be provided separately. The work record dates the run and the output records its result. Wall-clock duration is unavailable.

powershell -NoProfile -ExecutionPolicy Bypass -File scripts/smoke-api.ps1 `
  -BaseUrl http://127.0.0.1:33180 -AllowTestWrites -ConfirmDisposableDatabase

A separate loopback timing check sent 80 destination catalog requests at concurrency 8. It recorded zero errors, 12.6 ms mean, 8.6 ms median and 38.9 ms P95. Those numbers describe one local test route.

8. Deployment and recovery

The course demo runs on a shared Ubuntu ECS instance in Alibaba Cloud’s Hangzhou region. Node.js 22.21.1 and Express serve the interface and API directly over HTTPS on port 8003 under systemd. A separate MySQL 8.0.46 service on the same host listens on 127.0.0.1:3307. The application connects by local TCP using a database account with SELECT, INSERT, UPDATE and DELETE access on its own schema. The upload directory sits outside the versioned releases. The host already runs a calculator and ContactHub on ports 8000 and 8001. The deployment record shows that their responses matched the baseline after the ShanHai restart.

img

Figure 16. Deployment topology drawn from the ECS report. MySQL and backups are colocated with the web service.

The health check succeeded from the ECS host, while the workstation connection timed out. I identified the missing security-group ingress for TCP 8003 and added that application rule. The workstation acceptance then reached the site, passed certificate verification and reported the database ready. Figure 17 shows a later capture of the same public health endpoint. The team certificate is self-signed and expires on February 26, 2027. Use the public PEM from the submission package or an authenticated team channel, then verify its fingerprint and IP subject alternative name before you enter credentials. The site supports synthetic standard-account registration. Operator access is provisioned privately.

img

Figure 17. Public health API response reporting the database up. The deployment and restore records provide the MySQL service and backup details.

The release loaded a fresh schema and selected project seed data. The eight stock accounts were disabled and their password hashes replaced. Stock orders and favorites were omitted. A distinct operator was provisioned. During the recorded application restart, the web process changed and MySQL remained up. The uploaded test PNG was readable before and after the restart, and the deployment test removed it afterward.

The manual backup contained a compressed SQL dump, a separate upload archive and a SHA-256 manifest. Both archives passed checksum verification. The SQL was loaded into a disposable schema, and its dump matched the backup after normalization of redundant MySQL character-set annotations. All 17 tables were readable, with 9 destinations and 0 orders after fixture cleanup. The upload archive extracted and matched the clean upload directory, which was empty at that point. The running upload replay provides the separate evidence for a non-empty PNG. The restore schema and extracted copy were subsequently removed.

The daily timer is set for 03:20 Asia/Shanghai with retention of seven completed daily snapshots. The scheduled service was invoked manually and produced verified archives. The dump is transactional and the upload archive is taken separately. Both the backup and the recovery drill used the same ECS disk. The drill therefore verifies logical recovery on that host. The record leaves full database restart duration, off-host recovery and cross-device readback unverified.

9. Lessons and limitations

Dropping the checkout reply after the write showed whether the traveler could recover an already committed order. Restoring the backup showed whether its intact archive could produce a readable schema. Both checks exercised the recovery path directly.

This remains a course demo. Payments and refunds are simulated, the availability counter is local to the browser, and the trip assistant uses rule-based recommendations. Email verification and self-service email recovery are outside this release. The mobile figure is an Edge viewport on one workstation. Administrator privileges and continuity are documented in the acceptance records, while the public figures show the denials seen by anonymous and standard users.

9.1 Preparing the final sprint summary

The next write-up will be the final sprint summary. I will connect the four points on the original burn-up to the work they represent, from database reads and persistent writes to integrated user journeys and the public demo. The final booking and recovery records anchor the release story, alongside the demo scope and the limits of the device and recovery evidence.

10. Contribution and process records

ContributorWorkstreamCompleted workEvidence or deliverable
彭启航Planning and integrationDefined release checks, scoped the demo and integrated the Windows and ECS candidate.Checkpoint goals, burn-up and acceptance commit
彭启航Development and defect fixesImplemented or integrated booking recovery, pricing and refunds, story and upload fixes, administration, analytics and startup corrections.Code and issue table in Section 6
彭启航Testing and evidenceRan local API and browser verification, startup checks, public acceptance and operating checks. Captured the user-flow and access-denial evidence.Section 7, Figures 2–14 and public health in Figure 17
彭启航Deployment and recoveryDeployed the app and loopback MySQL on ECS, verified upload persistence, checked backup archives and restored a disposable schema.ECS topology, restart record and recovery evidence in Section 8
彭启航Documentation and deliveryPrepared the acceptance package, documented the deployment and assembled the log and figure index.Acceptance ZIP and checksum in Section 11

Checkpoint-level PSP hour totals are unavailable.

11. Release and handoff

The four check-ins are available on sprint-log-4-acceptance at 8c4bad8. At handoff, main remained at 5e0af48. No pull request was opened and the branch was unmerged.

The public branch’s backend, database, frontend and scripts trees match the local acceptance revision a550c1f. The live ECS deployment still runs that local revision with the demo-account controls and autofill removed from its login page.

Before upload, all 16 changed JavaScript files passed node --check, the PowerShell smoke script parsed successfully and git diff --check passed. The 44/44 local integration result comes from the earlier acceptance run in Section 7.

For review, start with the offline package ShanHai-acceptance-a550c1f-2026-11-28.zip. Its supplied SHA-256 matches the archive.

bb9c1b302f865406fca9a3a3ff6670c5da9196be2872ffeba858874ec5dbe096

Use the package’s source/README.md, source/docs/DEPLOY.md and source/docs/API.md for setup and interfaces. The path through the demo is destination → booking → mock payment → profile → simulated refund. For public access, use the address and certificate-verification instructions in the ECS deployment report supplied with the package. The candidate has a verifiable build identifier, a reproducible Windows startup path, working public core flows and a same-host recovery record.

References

...全文

相关推荐

Group 10 :Beta Stage Collection of Essays — StudentSys / Campus Smart Service

【代码】Group 10 :Beta Stage Collection of Essays — StudentSys / Campus Smart Service。

SynVisionLab

1480道金钥匙题库的结构化清洗、去重打标与组卷实践

题库建设的本质是半结构化教育数据治理:先以 JSON Schema 固定题干、选项、答案、标签、难度等字段,再用 Pydantic 做全量校验与答案归一化,随后通过文本归一化、MinHash 分桶和编辑距离完成相似题召回与去重,最后用三级知识点标签和作答数据校准难度,支撑按题型、知识点、难度配比自动组卷。其技术价值在于把易错的 Excel/Word 题源变成可校验、可追溯、可复用的数据资产,适用于刷题工具、校本资源库、错题本和日常测验组卷。金钥匙 1480 道题正是沿这条链路完成从脏数据到敢发卷的工程化整理

橙心橙怡

智慧城市工程施工管理智能体理场景的设计与实施方案.docx

智慧城市工程施工管理智能体理场景的设计与实施方案.docx

公众号:优享智库

数字医院医疗质量智能体理场景的设计与实施方案.docx

数字医院医疗质量智能体理场景的设计与实施方案.docx

公众号:优享智库

【风力涡轮发电机】用于电磁暂态(EMT)研究的第四类(即全变流器)风力发电机系统的通用模型研究(Simulink仿真实现)

内容概要:本文研究了一种用于电磁暂态(EMT)仿真的第四类全变流器型风力发电机系统的通用化建模方法,并基于Simulink平台实现了该模型的仿真。该模型全面涵盖了风力机气动特性、传动系统动力学、发电机电气特性、全功率电力电子变流器及其核心控制策略,包括最大功率点跟踪(MPPT)、有功与无功功率解耦控制、电网同步控制等,旨在为高比例风电接入的现代电力系统提供一个高精度、高效率的动态仿真工具。研究重点在于构建能够准确反映全变流器风机在各类电网扰动下动态响应行为的综合性模型,以支撑复杂电网的暂态稳定性分析、并网适应性评估、保护与控制策略的验证。文中详细阐述了各子系统模块的数学建模原理、参数设计依据及模块间的耦合关系,并通过不同运行工况下的仿真结果,验证了所建模型的动态准确性和工程实用性。; 适合人群:具备电力系统分析、电力电子技术、自动控制理论及Matlab/Simulink仿真基础的研究生、高校科研人员以及从事新能源发电并网仿真、电力系统规划与运行的工程技术人员。; 使用场景及目标:①研究高渗透率风电对电网电磁暂态过程(如短路故障、电压跌落)的影响机制;②开发与验证适用于风电场的新型继电保护、低电压穿越(LVRT)及高电压穿越(HVRT)控制策略;③进行含大规模风电的电力系统小干扰与大干扰稳定性评估;④作为高等院校相关专业进行风力发电系统动态特性教学与科研的先进仿真案例。; 阅读建议:读者应结合Matlab/Simulink环境,亲手搭建并调试文中所述模型,尤其关注变流器双闭环(电流环、电压环)控制器的设计、参数整定及其与电网强度的交互影响,建议深入研读文中引用的经典文献以巩固对风电机组控制理论与实践的理解。

@橘柑橙柠桔柚
评论
收藏 已收藏
分享
返回顶部
GOAT_666
2601_FZU-MU_SE 176 成员 308 内容